Fix a possible duplication bug

This commit is contained in:
Acrobot 2013-07-28 16:58:00 +02:00
parent b570e38be3
commit 77ef3121d3
1 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,17 @@
package com.Acrobot.ChestShop.Listeners.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerTeleportEvent;
/**
* A fix for a CraftBukkit bug.
* @author Acrobot
*/
public class PlayerTeleport implements Listener {
@EventHandler
public static void onPlayerTeleport(PlayerTeleportEvent event) {
event.getPlayer().closeInventory();
}
}