From dda62edfaa695a715c18ff38d7e9ff4a53dc9713 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Thu, 1 Apr 2021 19:23:21 +0200 Subject: [PATCH] Fix permission Check in CommandTPSLimiter --- .../src/de/steamwar/bausystem/commands/CommandTPSLimiter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTPSLimiter.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTPSLimiter.java index 1ebdc0e..e589a68 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTPSLimiter.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandTPSLimiter.java @@ -77,6 +77,7 @@ public class CommandTPSLimiter extends SWCommand { @Register public void valueCommand(Player p, String tpsLimit) { + if (!permissionCheck(p)) return; try { double tpsLimitDouble = Double.parseDouble(tpsLimit.replace(',', '.')); if (tpsLimitDouble < 0.5 || tpsLimitDouble > (TPSUtils.isWarpAllowed() ? 40 : 20)) {