@ServerStarting public void serverStarting(FMLServerStartingEvent e) { for (Command cmd : commands) { e.registerServerCommand(cmd); logger.info("Command " + cmd.getCommandName() + " registred."); } }
@ServerStarting public void onServerStart(FMLServerStartingEvent event) { if (MinecraftServer.getServer().getCommandManager() instanceof ServerCommandManager) { ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandSpawn()); ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandStruc()); ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandFreeze()); ((ServerCommandManager) MinecraftServer.getServer().getCommandManager()).registerCommand(new CommandHeal()); } }
@ServerStarting // register commands public void serverLoad(FMLServerStartingEvent event) { event.registerServerCommand(new Commands()); MinecraftForge.EVENT_BUS.register(new Signs()); if(!Config.Refrate.equals(0)){ TickRegistry.registerScheduledTickHandler(new Scheduler(), Side.SERVER); } else{System.out.println("[INFO] [InvScan] Config value for timer is false! ignoring timer");} }
@ServerStarting public void serverStarting(FMLServerStartingEvent event) { event.registerServerCommand(new AdminCommand()); event.registerServerCommand(new RegenerationCommand()); event.registerServerCommand(new TeleportationCommand()); event.registerServerCommand(new InfoCommand()); BlockStone.silverfishChance = silverfishChance; apLogger.info("[Apocalyptic] Silverfish spawn chance setted"); mlt = new MainLifeThread(); apLogger.info("[Apocalyptic] Main life system loaded"); PermissionNode.setPermissions(); apLogger.info("[Apocalyptic] Apocalyptic permissions setted"); }
@ServerStarting public void serverStarting(FMLServerStartingEvent event) { core.serverStarting(event.getServer()); }
@ServerStarting public void serverStart(FMLServerStartingEvent e){ e.registerServerCommand(new CommandMineTech()); }
@ServerStarting public void serverStarting(FMLServerStartingEvent event) { }
@ServerStarting public void serverStarting(FMLServerStartingEvent event) { // Initialize the custom commands }
@ServerStarting public void serverstarting(FMLServerStartingEvent evt) { evt.registerServerCommand(new SLPCommand()); this.l = Logger.getLogger("SLPMod"); if (httpdEnabled) { this.l.info("Starting Simple HTTP Server NOW! - on port " + httpdPort); SLPMod.httpdStat = EnumChatFormatting.GREEN + "ENABLED (port " + httpdPort + ")"; SLPHTTPServer.start(httpdPort); this.l.info("HTTP Server is started."); this.l.info("HTTP Server is using simpleframework, simpleframework.org"); } else { SLPMod.httpdStat = EnumChatFormatting.RED + "DISABLED"; this.l.info("HTTP Server is disabled in the config, will not start."); } }