Skip to content
Noah edited this page Sep 10, 2024 · 3 revisions

Settings

log-messages

This is a boolean value that decides whether or not messages sent to players should also be logged to console.

Default:

log-messages: true

Messages

start-reload-message

This a string that is sent to CommandSenders when /reload is run.

Default:

start-reload-message: '&b&lBR > &r&7Starting reload...'

end-reload-message

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!'

error-message

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!'

plugin-not-supported-message

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!'

External Reload

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:

Step 1: Adding a plugin node

Under the external node, add a node for the plugin you wish to add the reload support for.

Example:

external:
  essentials:

Step 2: Add a command node

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:

Step 3: Add command settings

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!

Clone this wiki locally