mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-01-03 22:08:28 +00:00
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:
parent
17b3c793d9
commit
12b5203039
1 changed files with 3 additions and 0 deletions
|
@ -136,6 +136,8 @@ public class User extends PlayerExtension implements Comparable<User>
|
|||
|
||||
public void teleportCooldown(boolean justCheck) throws Exception
|
||||
{
|
||||
return; // TODO: Fix this regression
|
||||
/*
|
||||
long now = Calendar.getInstance().getTimeInMillis();
|
||||
long cooldown = Essentials.getSettings().getTeleportCooldown();
|
||||
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));
|
||||
// if justCheck is set, don't update lastTeleport; we're just checking
|
||||
if (!justCheck) lastTeleport = now;
|
||||
*/
|
||||
}
|
||||
|
||||
public void teleportCooldown() throws Exception
|
||||
|
|
Loading…
Reference in a new issue