2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* 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-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-12-30 22:02:15 +01:00
|
|
|
package de.ellpeck.actuallyadditions.event;
|
2015-07-17 06:51:19 +02:00
|
|
|
|
|
|
|
import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
import cpw.mods.fml.common.gameevent.PlayerEvent;
|
2015-12-30 22:02:15 +01:00
|
|
|
import de.ellpeck.actuallyadditions.items.ItemWingsOfTheBats;
|
2015-07-17 06:51:19 +02:00
|
|
|
|
|
|
|
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);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|