mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 04:20:41 +00:00
parent
97eada7dd6
commit
4e5e5a9684
1 changed files with 2 additions and 2 deletions
|
@ -169,8 +169,8 @@ public class Teleport implements Runnable, ITeleport
|
||||||
else if (lastTime > earliestLong && !user.isAuthorized("essentials.teleport.cooldown.bypass"))
|
else if (lastTime > earliestLong && !user.isAuthorized("essentials.teleport.cooldown.bypass"))
|
||||||
{
|
{
|
||||||
time.setTimeInMillis(lastTime);
|
time.setTimeInMillis(lastTime);
|
||||||
time.add(Calendar.SECOND, (int)delay);
|
time.add(Calendar.SECOND, (int)cooldown);
|
||||||
time.add(Calendar.MILLISECOND, (int)((delay * 1000.0) % 1000.0));
|
time.add(Calendar.MILLISECOND, (int)((cooldown * 1000.0) % 1000.0));
|
||||||
throw new Exception(_("timeBeforeTeleport", Util.formatDateDiff(time.getTimeInMillis())));
|
throw new Exception(_("timeBeforeTeleport", Util.formatDateDiff(time.getTimeInMillis())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue