use of me.candiesjar.fallbackserver.velocity.commands.HubCommand in project Fallback-Server by sasi2006166.
the class FallbackServerVelocity method loadCommands.
private void loadCommands(CommandManager commandManager) {
CommandMeta commandMeta = commandManager.metaBuilder("").aliases(ConfigurationUtil.getConfig().getStringList("").toArray(new String[0])).build();
commandManager.register(commandMeta, new HubCommand());
}
use of me.candiesjar.fallbackserver.velocity.commands.HubCommand in project Fallback-Server by sasi2006166.
the class FallbackServerVelocity method onProxyInitialization.
@Inject
public void onProxyInitialization(Logger logger, CommandManager commandManager, @DataDirectory Path path, VelocityMetrics.Factory metricsFactory) {
// Instances
logger.info("§7[§b!§7] Loading configuration §7[§b!§7]");
instance = this;
ConfigurationUtil.saveConfiguration(path);
commandManager.register(Arrays.toString(ConfigurationUtil.getConfig().getStringList("").toArray(new String[0])), new HubCommand());
commandManager.register("fsv", new FallbackVelocityCommand());
loadStats(metricsFactory);
logger.info("§aPlugin loaded.");
}
Aggregations