From d7b85880fc3999187312dcc10efc42bf7eea40e9 Mon Sep 17 00:00:00 2001 From: zzzzzyc Date: Fri, 18 Sep 2026 21:40:45 +0800 Subject: [PATCH] Let per-type cooldown bypasses work without the global bypass Fixes the cooldown half of #6626: AsyncTeleport.cooldownApplies() required BOTH the global and the per-type bypass node to skip the teleport cooldown, so essentials.teleport.cooldown.bypass.back/.tpa alone had no effect. Either node now bypasses on its own. --- .../src/main/java/com/earth2me/essentials/AsyncTeleport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/AsyncTeleport.java b/Essentials/src/main/java/com/earth2me/essentials/AsyncTeleport.java index b5e687f255..6ba15a1925 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/AsyncTeleport.java +++ b/Essentials/src/main/java/com/earth2me/essentials/AsyncTeleport.java @@ -90,11 +90,11 @@ private boolean cooldownApplies() { applies = !teleportOwner.isAuthorized(globalBypassPerm); break; case BACK: - applies = !(teleportOwner.isAuthorized(globalBypassPerm) && + applies = !(teleportOwner.isAuthorized(globalBypassPerm) || teleportOwner.isAuthorized("essentials.teleport.cooldown.bypass.back")); break; case TPA: - applies = !(teleportOwner.isAuthorized(globalBypassPerm) && + applies = !(teleportOwner.isAuthorized(globalBypassPerm) || teleportOwner.isAuthorized("essentials.teleport.cooldown.bypass.tpa")); break; }