From d854bcbd6213f1b5f8ec2e2dc05fd867aed7e6ed Mon Sep 17 00:00:00 2001 From: LlmDl Date: Sat, 18 Nov 2023 17:56:58 -0600 Subject: [PATCH] - Fix /t set perm commands showing error feedback messages. --- .../java/com/palmergames/bukkit/towny/command/TownCommand.java | 3 +++ Towny/src/main/resources/ChangeLog.txt | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownCommand.java b/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownCommand.java index 8b607f8bfc..d81d23ba7a 100644 --- a/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownCommand.java +++ b/Towny/src/main/java/com/palmergames/bukkit/towny/command/TownCommand.java @@ -3364,6 +3364,7 @@ else if (split[0].equalsIgnoreCase("town")) TownyMessaging.sendErrorMsg(sender, Translatable.of("msg_err_invalid_input", "on/off.")); return; } + break; } case 2: { // Either /t set perm PERMLEVEL on|off or /t set perm ACTIONTYPE on|off boolean b; @@ -3391,6 +3392,7 @@ else if (split[0].equalsIgnoreCase("town")) return; } } + break; } case 3: { // /t set perm PERMLEVEL ACTIONTYPE on|off TownyPermission.PermLevel permLevel; @@ -3412,6 +3414,7 @@ else if (split[0].equalsIgnoreCase("town")) TownyMessaging.sendErrorMsg(sender, Translatable.of("msg_err_invalid_input", "on/off.")); return; } + break; } } diff --git a/Towny/src/main/resources/ChangeLog.txt b/Towny/src/main/resources/ChangeLog.txt index c5f06c5fd6..75568c2fb8 100644 --- a/Towny/src/main/resources/ChangeLog.txt +++ b/Towny/src/main/resources/ChangeLog.txt @@ -9215,4 +9215,5 @@ v0.92.0.11: - Closes #7089. - Fix regression: the /t invite {playername} not working as of 0.100.0.2. - Add Confirmation to /t set mayor command. - - Closes #7092. \ No newline at end of file + - Closes #7092. + - Fix /t set perm commands showing error feedback messages. \ No newline at end of file