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