tp ah exception

This commit is contained in:
Chiss 2013-10-18 09:09:29 +11:00
parent 410e08b06a
commit 882ede9a21

View File

@ -22,6 +22,7 @@ import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.player.PlayerMoveEvent;
import org.bukkit.event.player.PlayerQuitEvent;
import org.bukkit.event.player.PlayerTeleportEvent;
import org.bukkit.event.player.PlayerVelocityEvent;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.potion.PotionEffect;
@ -66,6 +67,12 @@ public class AntiHack extends MiniPlugin
Instance = new AntiHack(plugin);
}
@EventHandler
public void PlayerTeleport(PlayerTeleportEvent event)
{
_ignore.put(event.getPlayer(), System.currentTimeMillis() + 2000);
}
@EventHandler
public void PlayerVelocity(PlayerVelocityEvent event)
{