@Mod.EventHandler public void load(FMLInitializationEvent event) { proxy.initMod(); proxy.initTickHandlers(); proxy.initRenderersAndTextures(); EventHandler eventHandler = new EventHandler(); FMLCommonHandler.instance().bus().register(eventHandler); MinecraftForge.EVENT_BUS.register(eventHandler); }
@Mod.EventHandler public void serverStarting(FMLServerAboutToStartEvent event) { Hats.config.resetSession(); Hats.config.updateSession("serverHasMod", 1); Hats.config.updateSession("currentKing", ""); // SessionState.serverHasMod = true; // SessionState.serverHatMode = playerHatsMode; // SessionState.serverHat = lockedHat; proxy.initCommands(event.getServer()); }