From 1d6a7f9f7d5e6f1f8e33c6e5105c73c11611e59d Mon Sep 17 00:00:00 2001 From: AzniDev Date: Tue, 17 Dec 2024 19:45:17 +0700 Subject: [PATCH] allow tp to player with teleport disabled using permission --- .../main/java/com/earth2me/essentials/commands/Commandtp.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtp.java b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtp.java index 747775d4afe..e345244327c 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtp.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtp.java @@ -27,7 +27,7 @@ public void run(final Server server, final User user, final String commandLabel, case 1: final User player = getPlayer(server, user, args, 0, false, true); - if (!player.isTeleportEnabled()) { + if (!player.isTeleportEnabled() && !user.isAuthorized("essentials.tp.disabled.bypass")) { throw new TranslatableException("teleportDisabled", player.getDisplayName()); }