mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-12-24 17:17:49 +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) {
|
||||
event.getPlayer().closeInventory();
|
||||
if (!event.getPlayer().isConversing()) {
|
||||
event.getPlayer().closeInventory();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user