mirror of
https://github.com/EssentialsX/Essentials.git
synced 2025-01-21 23:51:42 +01:00
[trunk] Teleport Cooldown: uncommented code
What was the regression here? git-svn-id: https://svn.java.net/svn/essentials~svn/trunk@1132 e251c2fe-e539-e718-e476-b85c1f46cddb
This commit is contained in:
parent
333ef69e88
commit
3ef2efd1fb
@ -138,16 +138,13 @@ public class User extends PlayerExtension implements Comparable<User>, IReplyTo
|
||||
|
||||
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;
|
||||
if ((left > 0 && !isOp() && !isAuthorized("essentials.teleport.cooldown.bypass")) | !isJailed())
|
||||
if (left > 0 && !isOp() && !isAuthorized("essentials.teleport.cooldown.bypass"))
|
||||
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 New Issue
Block a user