Configuration
Configuration
The plugin's will generate a default config looking something like this:
commands: example_command: regions: - example1 - example2 message: You may not use that command here! data-logging: true token: JX6LhcBDCayWmuOglX2ISCa3wWgh5l3A4I2AqXfFRGbmpAEA config-version: 1
Under the commands section, you will put all the commands that you want to protect/restrict to certain regions. Under each command, the regions list will provide a list of regions that the command is usable under, and the message will be the message sent to the user if they execute the command outside of the permitted regions. In the configuration above, the command "example_command" is restricted to the regions "example1" and "example2". If the user tries to execute it outside of those two regions, they will be sent the message "You may not use that command here!".
Command arguments are supported as well. For example, if you put:
commands: help 1: ...
The plugin will not permit any commands starting with /help 1, so if I use /help 1 two, the plugin will block me. This will work for every sub-command. The plugin will not block me if I do something such as /ahelp 1.
Other
Please DO NOT edit the config version OR the token! Editing these could result in the plugin breaking or the configuration resetting!
Comments