mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
parent
0436962ee7
commit
10d902e730
@ -169,8 +169,8 @@ public class Teleport implements Runnable, ITeleport
|
||||
else if (lastTime > earliestLong && !user.isAuthorized("essentials.teleport.cooldown.bypass"))
|
||||
{
|
||||
time.setTimeInMillis(lastTime);
|
||||
time.add(Calendar.SECOND, (-1) * (int)delay);
|
||||
time.add(Calendar.MILLISECOND, (-1) * (int)((delay * 1000.0) % 1000.0));
|
||||
time.add(Calendar.SECOND, (int)delay);
|
||||
time.add(Calendar.MILLISECOND, (int)((delay * 1000.0) % 1000.0));
|
||||
throw new Exception(_("timeBeforeTeleport", Util.formatDateDiff(time.getTimeInMillis())));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user