mirror of
https://github.com/ChestShop-authors/ChestShop-3.git
synced 2024-11-24 02:56:02 +01:00
Fix a possible duplication bug
This commit is contained in:
parent
b570e38be3
commit
77ef3121d3
@ -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();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user