Search in sources :

Example 1 with SystemCommand

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;
}
Also used : SystemCommand(io.xol.chunkstories.api.plugin.commands.SystemCommand)

Aggregations

SystemCommand (io.xol.chunkstories.api.plugin.commands.SystemCommand)1