Search in sources :

Example 1 with ReloadCommand

use of org.mineacademy.velocitycontrol.command.ReloadCommand in project VelocityControl by kangarko.

the class VelocityControl method onPluginStart.

public void onPluginStart() {
    Settings.load();
    velocityControl = new VelocityControlListener();
    server.getChannelRegistrar().register(CHANNEL);
    server.getEventManager().register(this, new SwitchListener());
    server.getEventManager().register(this, new ChatListener());
    server.getEventManager().register(this, new CommandListener());
    server.getEventManager().register(this, new PlayerListener());
    server.getEventManager().register(this, velocityControl);
    this.onReloadablesStart();
    CommandMeta commandMeta = server.getCommandManager().metaBuilder("vcreload").build();
    server.getCommandManager().register(commandMeta, new ReloadCommand());
}
Also used : ReloadCommand(org.mineacademy.velocitycontrol.command.ReloadCommand) CommandMeta(com.velocitypowered.api.command.CommandMeta)

Aggregations

CommandMeta (com.velocitypowered.api.command.CommandMeta)1 ReloadCommand (org.mineacademy.velocitycontrol.command.ReloadCommand)1