From 9373fe21f7be0ea89bcba226b7c2117773444773 Mon Sep 17 00:00:00 2001 From: jojo Date: Wed, 20 Jan 2021 21:06:32 +0100 Subject: [PATCH] Fix TNTSimulatorListener permission check --- .../bausystem/cannonsimulator/TNTSimulatorListener.java | 2 +- .../src/de/steamwar/bausystem/commands/CommandSimulator.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulatorListener.java b/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulatorListener.java index a72fd68..49dc743 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulatorListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/cannonsimulator/TNTSimulatorListener.java @@ -37,7 +37,7 @@ public class TNTSimulatorListener implements Listener { private static final Vector HALF = new Vector(0.5, 0, 0.5); private boolean permissionCheck(Player player) { - if (Welt.noPermission(player, Permission.build)) { + if (Welt.noPermission(player, Permission.world)) { player.sendMessage(BauSystem.PREFIX + "§cDu darfst hier nicht den Simulator nutzen"); return false; } diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSimulator.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSimulator.java index c351462..8e86f61 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSimulator.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandSimulator.java @@ -25,7 +25,6 @@ import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.Permission; import de.steamwar.bausystem.cannonsimulator.TNTSimulator; import de.steamwar.bausystem.world.Welt; -import org.bukkit.block.data.type.TNT; import org.bukkit.command.Command; import org.bukkit.command.CommandExecutor; import org.bukkit.command.CommandSender; @@ -34,7 +33,7 @@ import org.bukkit.entity.Player; public class CommandSimulator implements CommandExecutor { private boolean permissionCheck(Player player) { - if (Welt.noPermission(player, Permission.build)) { + if (Welt.noPermission(player, Permission.world)) { player.sendMessage(BauSystem.PREFIX + "§cDu darfst hier nicht den Simulator nutzen"); return false; }