Search in sources :

Example 1 with CatchUnknown

use of co.aikar.commands.annotation.CatchUnknown in project RoseStacker by Rosewood-Development.

the class RoseCommand method onCommand.

@Default
@CatchUnknown
public void onCommand(CommandSender sender) {
    LocaleManager localeManager = this.rosePlugin.getManager(LocaleManager.class);
    String baseColor = localeManager.getLocaleMessage("base-command-color");
    localeManager.sendCustomMessage(sender, baseColor + "Running <g:#8A2387:#E94057:#F27121>RoseStacker" + baseColor + " v" + this.rosePlugin.getDescription().getVersion());
    localeManager.sendCustomMessage(sender, baseColor + "Plugin created by: <g:#41e0f0:#ff8dce>" + this.rosePlugin.getDescription().getAuthors().get(0));
    localeManager.sendSimpleMessage(sender, "base-command-help");
}
Also used : LocaleManager(dev.rosewood.rosestacker.manager.LocaleManager) CatchUnknown(co.aikar.commands.annotation.CatchUnknown) Default(co.aikar.commands.annotation.Default)

Aggregations

CatchUnknown (co.aikar.commands.annotation.CatchUnknown)1 Default (co.aikar.commands.annotation.Default)1 LocaleManager (dev.rosewood.rosestacker.manager.LocaleManager)1