From fe4060ce9221529051d9c7e3fa1a9564e713ddc8 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 30 Nov 2021 20:39:58 +0100 Subject: [PATCH] Fix WarpCommand.deleteWarp Signed-off-by: yoyosource --- .../src/de/steamwar/bausystem/features/warp/WarpCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/warp/WarpCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/warp/WarpCommand.java index 055bd9b3..14fd84b3 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/warp/WarpCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/warp/WarpCommand.java @@ -98,7 +98,7 @@ public class WarpCommand extends SWCommand implements Disable, Enable { @Register("delete") public void deleteWarp(Player player, Warp warp) { - if (permissionCheck(player)) return; + if (!permissionCheck(player)) return; warp.delete(); BauSystem.MESSAGE.send("WARP_DELETED", player, warp.getName()); }