mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 01:27:40 +01: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
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user