mirror of
https://github.com/Phoenix616/RandomTeleport.git
synced 2024-11-22 10:36:00 +01:00
Fix randomteleport.cooldownexempt not working
This commit is contained in:
parent
988f2ee736
commit
66b02e8201
@ -330,7 +330,7 @@ public class RandomTeleport extends JavaPlugin implements RandomTeleportAPI {
|
||||
Map.Entry<Long, Integer> lastUse = cooldowns.get(searcher.getId(), target.getUniqueId());
|
||||
if (lastUse != null) {
|
||||
int targetCooldown = (int) ((System.currentTimeMillis() - lastUse.getKey()) / 1000);
|
||||
if (targetCooldown > cooldown) {
|
||||
if (targetCooldown > cooldown && !target.hasPermission("randomteleport.cooldownexempt")) {
|
||||
cooldown = targetCooldown;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user