Temporary fix for teleportation

git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1044 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
Zenexer 2011-03-30 20:22:07 +00:00
parent 17b3c793d9
commit 12b5203039

View File

@ -136,6 +136,8 @@ public class User extends PlayerExtension implements Comparable<User>
public void teleportCooldown(boolean justCheck) throws Exception public void teleportCooldown(boolean justCheck) throws Exception
{ {
return; // TODO: Fix this regression
/*
long now = Calendar.getInstance().getTimeInMillis(); long now = Calendar.getInstance().getTimeInMillis();
long cooldown = Essentials.getSettings().getTeleportCooldown(); long cooldown = Essentials.getSettings().getTeleportCooldown();
long left = lastTeleport + cooldown - now; long left = lastTeleport + cooldown - now;
@ -143,6 +145,7 @@ public class User extends PlayerExtension implements Comparable<User>
throw new Exception("Time before next teleport: " + Essentials.FormatTime(left)); throw new Exception("Time before next teleport: " + Essentials.FormatTime(left));
// if justCheck is set, don't update lastTeleport; we're just checking // if justCheck is set, don't update lastTeleport; we're just checking
if (!justCheck) lastTeleport = now; if (!justCheck) lastTeleport = now;
*/
} }
public void teleportCooldown() throws Exception public void teleportCooldown() throws Exception