Messages
Customization of error/invalid usage messages.
#Messages
The library provides many messages that are configurable through a simple structure. Any message that you modify will be handled using the function and syntax displayed below in the example provided.
commandManager.registerMessage(MessageKey.INVALID_ARGUMENT, (sender, context) -> {
// handle sending the error message
});
Different use-cases provide different applicable keys. You can find a list of all available keys for each module below.
#Universal Keys
Universal keys are accessed through the MessageKey class.
INVALID_ARGUMENTTOO_MANY_ARGUMENTSNOT_ENOUGH_ARGUMENTSUNKNOWN_COMMAND
#Bukkit Keys
Bukkit keys are accessed through the BukkitMessageKey class.
NO_PERMISSIONPLAYER_ONLYCONSOLE_ONLY