Search in sources :

Example 1 with CommandReload

use of com.griefdefender.hooks.command.CommandReload in project GDHooks by bloodmc.

the class GDHooks method registerBaseCommands.

public void registerBaseCommands() {
    PaperCommandManager manager = new PaperCommandManager(GDHooksBootstrap.getInstance().getLoader());
    this.commandManager = manager;
    manager.getCommandReplacements().addReplacements("reload", this.getCommandDescriptionTranslation(MessageConfig.DESCRIPTION_RELOAD), "version", this.getCommandDescriptionTranslation(MessageConfig.DESCRIPTION_VERSION));
    manager.registerCommand(new CommandReload());
    manager.registerCommand(new CommandVersion());
    this.registerCommandCompletions();
}
Also used : CommandReload(com.griefdefender.hooks.command.CommandReload) CommandVersion(com.griefdefender.hooks.command.CommandVersion) PaperCommandManager(co.aikar.commands.PaperCommandManager)

Aggregations

PaperCommandManager (co.aikar.commands.PaperCommandManager)1 CommandReload (com.griefdefender.hooks.command.CommandReload)1 CommandVersion (com.griefdefender.hooks.command.CommandVersion)1