From 4ee5e3d134f656e845abd1e19de4787e852aad43 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Sun, 8 Aug 2021 16:51:21 +0100 Subject: [PATCH] Invert toggle messages where the toggle disables rather than enables --- .../java/com/plotsquared/core/command/Toggle.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Toggle.java b/Core/src/main/java/com/plotsquared/core/command/Toggle.java index b91002e00..dfb85d620 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Toggle.java +++ b/Core/src/main/java/com/plotsquared/core/command/Toggle.java @@ -114,12 +114,12 @@ public class Toggle extends Command { ) { if (toggle(player, "ignoreExpireTask")) { player.sendMessage( - TranslatableCaption.of("toggle.toggle_disabled"), + TranslatableCaption.of("toggle.toggle_enabled"), Template.of("setting", command.toString()) ); } else { player.sendMessage( - TranslatableCaption.of("toggle.toggle_enabled"), + TranslatableCaption.of("toggle.toggle_disabled"), Template.of("setting", command.toString()) ); } @@ -134,12 +134,12 @@ public class Toggle extends Command { ) { if (toggle(player, "disabletitles")) { player.sendMessage( - TranslatableCaption.of("toggle.toggle_disabled"), + TranslatableCaption.of("toggle.toggle_enabled"), Template.of("setting", command.toString()) ); } else { player.sendMessage( - TranslatableCaption.of("toggle.toggle_enabled"), + TranslatableCaption.of("toggle.toggle_disabled"), Template.of("setting", command.toString()) ); } @@ -154,12 +154,12 @@ public class Toggle extends Command { ) { if (toggle(player, "disabletime")) { player.sendMessage( - TranslatableCaption.of("toggle.toggle_disabled"), + TranslatableCaption.of("toggle.toggle_enabled"), Template.of("setting", command.toString()) ); } else { player.sendMessage( - TranslatableCaption.of("toggle.toggle_enabled"), + TranslatableCaption.of("toggle.toggle_disabled"), Template.of("setting", command.toString()) ); }