mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-16 13:03:12 +01:00
26 lines
898 B
Java
26 lines
898 B
Java
/*
|
|
* This file ("LogoutEvent.java") is part of the Actually Additions Mod for Minecraft.
|
|
* It is created and owned by Ellpeck and distributed
|
|
* under the Actually Additions License to be found at
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2015 Ellpeck
|
|
*/
|
|
|
|
package ellpeck.actuallyadditions.event;
|
|
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
|
import ellpeck.actuallyadditions.items.ItemWingsOfTheBats;
|
|
|
|
public class LogoutEvent{
|
|
|
|
@SubscribeEvent
|
|
public void onLogOutEvent(PlayerEvent.PlayerLoggedOutEvent event){
|
|
//Remove Player from Wings' Fly Permission List
|
|
ItemWingsOfTheBats.removeWingsFromPlayer(event.player, true);
|
|
ItemWingsOfTheBats.removeWingsFromPlayer(event.player, false);
|
|
}
|
|
|
|
}
|