Search in sources :

Example 1 with VelocityCommand

use of com.djrapitops.plan.commands.use.VelocityCommand in project Plan by plan-player-analytics.

the class PlanVelocity method registerCommand.

@Override
public void registerCommand(Subcommand command) {
    if (command == null) {
        logger.warn("Attempted to register a null command!");
        return;
    }
    CommandManager commandManager = proxy.getCommandManager();
    commandManager.register(commandManager.metaBuilder(command.getPrimaryAlias()).aliases(command.getAliases().toArray(new String[0])).build(), new VelocityCommand(runnableFactory, system.getErrorLogger(), command));
}
Also used : CommandManager(com.velocitypowered.api.command.CommandManager) VelocityCommand(com.djrapitops.plan.commands.use.VelocityCommand)

Aggregations

VelocityCommand (com.djrapitops.plan.commands.use.VelocityCommand)1 CommandManager (com.velocitypowered.api.command.CommandManager)1