From daa97b9a4e775e17693686f4e541b51af748b4bc Mon Sep 17 00:00:00 2001 From: yoyosource Date: Tue, 20 Sep 2022 13:10:51 +0200 Subject: [PATCH] Remove useless messages Signed-off-by: yoyosource --- BauSystem_Main/src/BauSystem.properties | 8 -------- BauSystem_Main/src/BauSystem_de.properties | 8 -------- BauSystem_Main/src/BauSystem_nl.properties | 8 -------- .../src/de/steamwar/bausystem/Permission.java | 16 ---------------- 4 files changed, 40 deletions(-) diff --git a/BauSystem_Main/src/BauSystem.properties b/BauSystem_Main/src/BauSystem.properties index c02e1194..7402a2f6 100644 --- a/BauSystem_Main/src/BauSystem.properties +++ b/BauSystem_Main/src/BauSystem.properties @@ -27,14 +27,6 @@ PAGE_LIST=§e Page ({0}/{1}) »» LIST_PREVIOUS_PAGE=§ePrevious page LIST_NEXT_PAGE=§eNext page -# Permission -PERMISSION_WORLD = change settings -PERMISSION_WORLD_EDIT = use WorldEdit -PERMISSION_CHANGE_YOU_ENABLE = §aThe player is now allowed to {0} -PERMISSION_CHANGE_YOU_DISABLE = §cThe player is now not allowed to {0} -PERMISSION_CHANGE_OTHER_ENABLE = §aYou are allowed to join the World of §6{0} §a{1} -PERMISSION_CHANGE_OTHER_DISABLE = §cYou are no longer allowed to join the World of §6{0} §c{1} - # Scoreboard SCOREBOARD_TIME = Time SCOREBOARD_REGION = Region diff --git a/BauSystem_Main/src/BauSystem_de.properties b/BauSystem_Main/src/BauSystem_de.properties index 77b8aaef..9ccfa729 100644 --- a/BauSystem_Main/src/BauSystem_de.properties +++ b/BauSystem_Main/src/BauSystem_de.properties @@ -27,14 +27,6 @@ PAGE_LIST=§e Seite ({0}/{1}) »» LIST_PREVIOUS_PAGE=§eVorherige Seite LIST_NEXT_PAGE=§eNächste Seite -# Permission -PERMISSION_WORLD = Einstellungen vornehmen -PERMISSION_WORLD_EDIT = WorldEdit verwenden -PERMISSION_CHANGE_YOU_ENABLE = §aDer Spieler darf nun {0} -PERMISSION_CHANGE_YOU_DISABLE = §cDer Spieler darf nun nicht mehr {0} -PERMISSION_CHANGE_OTHER_ENABLE = §aDu kannst nun auf der Welt von §6{0} §a{1} -PERMISSION_CHANGE_OTHER_DISABLE = §cDu kannst nun nicht mehr auf der Welt von §6{0} §c{1} - # Scoreboard SCOREBOARD_TIME = Uhrzeit SCOREBOARD_REGION = Region diff --git a/BauSystem_Main/src/BauSystem_nl.properties b/BauSystem_Main/src/BauSystem_nl.properties index 26765d96..4a56c78b 100644 --- a/BauSystem_Main/src/BauSystem_nl.properties +++ b/BauSystem_Main/src/BauSystem_nl.properties @@ -26,14 +26,6 @@ PAGE_LIST=§e Pagina ({0}/{1}) »» LIST_PREVIOUS_PAGE=§eVorige pagina LIST_NEXT_PAGE=§eVolgende pagina -# Permission -PERMISSION_WORLD = change settings -PERMISSION_WORLD_EDIT = use WorldEdit -PERMISSION_CHANGE_YOU_ENABLE = §aThe player is now allowed to {0} -PERMISSION_CHANGE_YOU_DISABLE = §cThe player is now not allowed to {0} -PERMISSION_CHANGE_OTHER_ENABLE = §aYou are allowed to join the World of §6{0} §a{1} -PERMISSION_CHANGE_OTHER_DISABLE = §cYou are no longer allowed to join the World of §6{0} §c{1} - # Scoreboard SCOREBOARD_TIME = Time SCOREBOARD_REGION = Region diff --git a/BauSystem_Main/src/de/steamwar/bausystem/Permission.java b/BauSystem_Main/src/de/steamwar/bausystem/Permission.java index 9de5e1e1..539a0f80 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/Permission.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/Permission.java @@ -54,20 +54,4 @@ public enum Permission { public static boolean hasPermission(Player member, Permission permission) { return permission.hasPermission(member); } - - private static void sendMessages(Player player, boolean ableTo, BauweltMember target, String what) { - Player targetPlayer = Bukkit.getPlayer(SteamwarUser.get(target.getMemberID()).getUUID()); - if (targetPlayer != null) { - if (ableTo) { - BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER_ENABLE", targetPlayer, player.getName(), BauSystem.MESSAGE.parse(what, targetPlayer)); - } else { - BauSystem.MESSAGE.send("PERMISSION_CHANGE_OTHER_DISABLE", targetPlayer, player.getName(), BauSystem.MESSAGE.parse(what, targetPlayer)); - } - } - if (ableTo) { - BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU_ENABLE", player, BauSystem.MESSAGE.parse(what, player)); - } else { - BauSystem.MESSAGE.send("PERMISSION_CHANGE_YOU_DISABLE", player, BauSystem.MESSAGE.parse(what, player)); - } - } } \ No newline at end of file