Fix a bug where the chat was closed on teleport

This commit is contained in:
Acrobot 2013-08-08 20:25:44 +02:00
parent ed1f0a6024
commit 900009b103

View File

@ -6,12 +6,15 @@ 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();
if (!event.getPlayer().isConversing()) {
event.getPlayer().closeInventory();
}
}
}