net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedOutEvent Java Examples

The following examples show how to use net.minecraftforge.fml.common.gameevent.PlayerEvent.PlayerLoggedOutEvent. 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: EventsCommon.java    From Valkyrien-Skies with Apache License 2.0 4 votes vote down vote up
@SubscribeEvent
public void onLeave(PlayerLoggedOutEvent event) {
    if (!event.player.world.isRemote) {
        lastPositions.remove(event.player);
    }
}
 
Example #2
Source File: ServerHandler.java    From NotEnoughItems with MIT License 4 votes vote down vote up
@SubscribeEvent
public void logoutEvent(PlayerLoggedOutEvent event) {
    NEIServerConfig.unloadPlayer(event.player);
}
 
Example #3
Source File: AtmosphereHandler.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@SubscribeEvent
public void onPlayerLogoutEvent(PlayerLoggedOutEvent event) {
	prevAtmosphere.remove(event.player);
}
 
Example #4
Source File: ServerHandler.java    From NotEnoughItems with MIT License 4 votes vote down vote up
@SubscribeEvent
public void logoutEvent(PlayerLoggedOutEvent event) {
    NEIServerConfig.unloadPlayer(event.player);
}