Add teleport listener to AdminWorld monitor.

This commit is contained in:
Steven Lawson
2013-08-12 22:01:28 -04:00
parent eb4622fc28
commit e23db244a5
4 changed files with 12 additions and 6 deletions

View File

@ -213,6 +213,12 @@ public class TFM_PlayerListener implements Listener
}
}
@EventHandler(priority = EventPriority.HIGHEST)
public void onPlayerTeleport(PlayerTeleportEvent event)
{
TFM_AdminWorld.getInstance().validateMovement(event);
}
@EventHandler(priority = EventPriority.NORMAL)
public void onPlayerMove(PlayerMoveEvent event)
{

View File

@ -56,7 +56,7 @@ public class TFM_AdminWorld
if (lastTP == null || lastTP.longValue() + TP_COOLDOWN_TIME <= currentTimeMillis)
{
teleportCooldown.put(player, currentTimeMillis);
TFM_Util.bcastMsg(player.getName() + " attempted to access the AdminWorld.", ChatColor.RED);
TFM_Log.info(player.getName() + " attempted to access the AdminWorld.");
new BukkitRunnable()
{
@Override