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));
}
Aggregations