From 46678aead5bd00d97a2b19d7473853a667862446 Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 27 Dec 2021 13:54:29 +0100 Subject: [PATCH] Update WorldEditListener Signed-off-by: yoyosource --- BauSystem_Main/src/BauSystem.properties | 3 ++- .../steamwar/bausystem/features/world/WorldEditListener.java | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/BauSystem_Main/src/BauSystem.properties b/BauSystem_Main/src/BauSystem.properties index 9f016ae9..254682ae 100644 --- a/BauSystem_Main/src/BauSystem.properties +++ b/BauSystem_Main/src/BauSystem.properties @@ -1091,4 +1091,5 @@ WARP_MOON_COUNTDOOWN=§7Noch §e§l{0} §7Sekunden! # WORLD STOP_HELP = §8/§estop §8- §7Stoppt den Server STOP_NO_PERMS = §cDu hast keine Rechte den Server zu stoppen -STOP_MESSAGE = §eDer Server wird gestoppt \ No newline at end of file +STOP_MESSAGE = §eDer Server wird gestoppt +WORLD_EDIT_NO_PERMS = §cDu darfst hier kein WorldEdit benutzen diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/world/WorldEditListener.java b/BauSystem_Main/src/de/steamwar/bausystem/features/world/WorldEditListener.java index b234b483..07061fcb 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/world/WorldEditListener.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/world/WorldEditListener.java @@ -37,9 +37,8 @@ public class WorldEditListener implements Listener { if (!isWorldEditCommand(e.getMessage().split(" ")[0])) return; Player p = e.getPlayer(); - if (!Permission.hasPermission(p, Permission.WORLDEDIT)) { - p.sendMessage(BauSystem.PREFIX + "§cDu darfst hier kein WorldEdit benutzen"); + BauSystem.MESSAGE.send("WORLD_EDIT_NO_PERMS", p); e.setCancelled(true); } }