Sueta

SkyblockCommandToggle [1.7-1.14]

1.3

Let players decide what visitors can do on their island! (ASkyBlock)

·Plugin

> Skyblock Command Toggle

Sometimes players on your Skyblock server don't want visitors doing certain things on their island, for example, /fly. SkyblockCommandToggle allows you to designate custom commands integrated into /is (and /island, e.g. /is yourcommand) to allow your players to decide if island visitors can do certain features.


> Permissions

100% of the permissions on this plugin are customisable, but here's the one default one that is set if you do not choose a custom one:

- asadmin.bypass.<identifier>: Allows the user to bypass the restrictions for <identifier> on any island. (<identifier> will be detailed below)


> Configuration + Tutorial

Here's the default configuration:

Default Configuration
#  
 # SkyblockDenyCommand by iShadey (TrollStar12345)  
 #  
 # Supports ASkyBlock ONLY  
 #  
 #  
 # Config tutorial:  
 #  
 # flight:                                                               << An identifier. Can be ANYTHING, but must be unique.  
 #   toggleCommand: toggleflight                                         << What should the command be to toggle? e.g. toggleflight -> /is toggleflight. Existing sub-commands won't be overridden!  
 #   denyCommands:                                                       << What commands should be blocked? Must be a list. /is and /island are exempt.  
 #   - fly  
 #   - efly  
 #   denyMessage: '&c&lFlight is not available to island visitors.'      << What message should island visitors get when they are denied access to the command(s)?  
 #   disableFlightOnEntry: true                                          << Blocks bypassing by enabling flight before warping to the island. Remove to disable feature.  
 #   usePermission: some.player.permission                               << Permission node to give access to toggling the restriction. Remove to disable feature.  
 #   bypassPermission: some.staff.permission                             << Permission node to bypass the restriction. Defaults to asadmin.bypass.<identifier>  
 #   messages:  
 #     toggleOn: '&cVisitors can no longer fly on this island.'          << Message to send when the commandblock is enabled (not allowed to use blocked commands)  
 #     toggleOff: '&aVisitors can now fly on this island.'               << Message to send when the commandblock is disabled (allowed to use blocked commands)  
 
fly  :  
  toggleCommand   :  toggleflight  
  denyCommands   : 
  - fly 
  - efly  
  denyMessage   :  '&c&lFlight is not available to island visitors.'  
  disableFlightOnEntry   :  true  
  usePermission   :  some.player.permission  
  bypassPermission   :  some.staff.permission  
  messages  :  
    toggleOn   :  '&cVisitors can  no  longer fly on this island.'  
    toggleOff   :  '&aVisitors can now fly on this island.' 
   
jump  :  
  toggleCommand   :  togglejump  
  denyCommands   : 
  - j 
  - jump  
  denyMessage   :  '&c&l/jump is not available to island visitors.'  
  bypassPermission   :  some.staff.permission  
  messages  :  
    toggleOn   :  '&cVisitors can  no  longer use /jump on this island.'  
    toggleOff   :  '&aVisitors can now use /jump on this island.'


How to create a restriction:

First we need to create the main-structure:

identifier  :  
  denyCommands   : 
  - command  
  denyMessage   :  '&cThat is not allowed on this island!'  
  messages  :  
    toggleOn   :  '&cRestriction enabled. Users cannot perform the command.'  
    toggleOff   :  '&aRestriction disabled. Users can perform the command.'

This is the most basic we can do. Required:

identifier: Separates the restriction from each other, and used in the default permission (shown above)

denyCommands: What commands will be blocked by this restriction?

messages.toggleOn: What should be said to the user who enabled the restriction?

messages.toggleOff: What should be said to the user who disabled the restriction?

Extras (not required):

disableFlightOnEntry: Useful when blocking /fly. Should we disable visitors flight when they are visiting the island with the restriction on? Default: false

bypassPermission: What is the permission to bypass this restriction? (For staff. Excluding this artefact will default the permission to asadmin.bypass.<identifier>)

usePermission: What is the permission required to be able to use this restriction? (For players. Remove this artefact to make it available to all users)

If you need help setting this up feel free to shoot me a message on here or Discord: Joshua H#0001

> Screenshots

These are just a few screenshots of the messages (configurable)!



Similar projects

Plugin →