Validation is important.

This commit is contained in:
GJ 2013-07-24 20:29:32 -04:00
parent 78f2e0a064
commit e073eca458

View File

@ -70,7 +70,13 @@ public class PlayerListener implements Listener {
@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)
public void onPlayerTeleport(PlayerTeleportEvent event) {
UserManager.getPlayer(event.getPlayer()).actualizeTeleportATS();
Player player = event.getPlayer();
if (Misc.isNPCEntity(player)) {
return;
}
UserManager.getPlayer(player).actualizeTeleportATS();
}
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)