From a78e33c32ab66260c8e9a974f4ea6f7f3794f976 Mon Sep 17 00:00:00 2001 From: JRoy <10731363+JRoy@users.noreply.github.com> Date: Sun, 14 Jun 2026 11:39:18 -0700 Subject: [PATCH] Fix teleport-cooldown not applying to /tp Self-teleport to coordinates called now() with cooldown disabled, so it ignored teleport-cooldown while every other self-teleport path enforces it. Enable the cooldown flag for this case. Fixes #6499 --- .../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 f596ee094fd..ad764a43f67 100644 --- a/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtp.java +++ b/Essentials/src/main/java/com/earth2me/essentials/commands/Commandtp.java @@ -56,7 +56,7 @@ public void run(final Server server, final User user, final String commandLabel, throw new NotEnoughArgumentsException(user.playerTl("teleportInvalidLocation")); } final Location locpos = new Location(user.getWorld(), x2, y2, z2, user.getLocation().getYaw(), user.getLocation().getPitch()); - user.getAsyncTeleport().now(locpos, false, TeleportCause.COMMAND, future); + user.getAsyncTeleport().now(locpos, true, TeleportCause.COMMAND, future); future.thenAccept(success -> { if (success) { user.sendTl("teleporting", locpos.getWorld().getName(), locpos.getBlockX(), locpos.getBlockY(), locpos.getBlockZ());