cpw.mods.fml.common.event.FMLServerStoppingEvent Java Examples

The following examples show how to use cpw.mods.fml.common.event.FMLServerStoppingEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: NovaMinecraft.java    From NOVA-Core with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
	Game.events().publish(new ServerEvent.Stop());
}
 
Example #2
Source File: ForgeMain.java    From FastAsyncWorldedit with GNU General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void serverStopping(FMLServerStoppingEvent event) {
    for (EntityPlayerMP player : (List<EntityPlayerMP>)MinecraftServer.getServer().getConfigurationManager().playerEntityList) {
        handleQuit(player);
    }
}
 
Example #3
Source File: TickDynamicMod.java    From TickDynamic with MIT License 4 votes vote down vote up
@Subscribe
public void serverStop(FMLServerStoppingEvent event) {
	tpsTimer.cancel();
	server = null;
}
 
Example #4
Source File: MyTown.java    From MyTown2 with The Unlicense 4 votes vote down vote up
@EventHandler
public void serverStopping(FMLServerStoppingEvent ev) {
    datasource.deleteAllBlockOwners();
    ProtectionManager.saveBlockOwnersToDB();
    datasource.stop();
}
 
Example #5
Source File: SimplyJetpacks.java    From SimplyJetpacks with MIT License 4 votes vote down vote up
@EventHandler
public static void serverStopping(FMLServerStoppingEvent evt) {
    SyncHandler.clearAll();
}