mirror of
https://github.com/essentials/Essentials.git
synced 2025-08-24 15:23:20 +02:00
Invert teleport timer.
This commit is contained in:
@@ -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, (-1) * (int)delay);
|
||||||
time.add(Calendar.MILLISECOND, (int)((delay * 1000.0) % 1000.0));
|
time.add(Calendar.MILLISECOND, (-1) * (int)((delay * 1000.0) % 1000.0));
|
||||||
throw new Exception(_("timeBeforeTeleport", Util.formatDateDiff(time.getTimeInMillis())));
|
throw new Exception(_("timeBeforeTeleport", Util.formatDateDiff(time.getTimeInMillis())));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user