@EventHandler public void serverLoad(FMLServerStartingEvent event) { ChunkManager.getInstance().requestTicket(); // event.registerServerCommand(new CommandLandBook()); MapStorage storage = MinecraftServer.getServer().worldServers[0].perWorldStorage; chunkSaved = (ChunkSavedData) storage.loadData(ChunkSavedData.class, ChunkSavedData.key); if (chunkSaved == null) { chunkSaved = new ChunkSavedData(); storage.setData(ChunkSavedData.key, chunkSaved); } }
@EventHandler public void serverUnload(FMLServerStoppingEvent event) { ChunkManager.getInstance().init(); }