mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-25 09:27:39 +01:00
Fix a bug where the chat was closed on teleport
This commit is contained in:
parent
ed1f0a6024
commit
900009b103
@ -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) {
|
||||
if (!event.getPlayer().isConversing()) {
|
||||
event.getPlayer().closeInventory();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user