-
Notifications
You must be signed in to change notification settings - Fork 0
Config
This is a boolean value that decides whether or not messages sent to players should also be logged to console.
Default:
log-messages: trueThis a string that is sent to CommandSenders when /reload is run.
Default:
start-reload-message: '&b&lBR > &r&7Starting reload...'This is a string that is sent to CommandSenders when /reload is finished.
Default:
end-reload-message: '&b&lBR > &r&7Reload finished in &b%ms% &7ms!'This is a string that is sent to CommandSenders if a plugin throws a Throwable during /reload.
Default:
error-message: '&b&lBR > &r&cAn error occurred while reloading! Please check console for more info!'This is a string that is sent to CommandSenders when a parameter of the /reload command doesn't resolve to a supported plugin.
Default:
plugin-not-supported-message: '&b&lBR > &r&cCould not find a reload listener for &b%input%&c!'As of update 1.4.0, external reload capabilities have been added allowing any plugin with a reload command to be supported by the plugin.
Keep in mind that the Bukkit command dispatcher executes the commands on the following tick, so the commands will be sent on the tick after the reload completes.
Here is how to set it up:
Under the external node, add a node for the plugin you wish to add the reload support for.
Example:
external:
essentials:Add a command node underneath the plugin node you just added. It can be any name as long as it's one word.
Example:
external:
essentials:
reload:Under the command node, you must add two things: an executor node and a commands node.
The executor node should have one of two values - CONSOLE or SENDER. If the value is CONSOLE, the following commands will be executed by console. If the value is SENDER, the following commands will be executed by whoever triggered the reload.
The commands node should be a list of commands that should be executed. These should not include the /.
Example:
external:
essentials:
reload:
executor: CONSOLE
commands:
- essentials reload
- bc Essentials was reloaded!
message:
executor: SENDER
commands:
- say I triggered the essentials reload!