use of io.xol.chunkstories.api.plugin.commands.SystemCommand in project chunkstories by Hugobros3.
the class DefaultPluginManager method registerCommand.
@Override
public SystemCommand registerCommand(String commandName, String... aliases) {
SystemCommand command = new SystemCommand(pluginExecutionContext, commandName);
for (String alias : aliases) {
command.addAlias(alias);
commandsAliases.put(alias, command);
}
this.commands.add(command);
commandsAliases.put(commandName, command);
return command;
}
Aggregations