Invert toggle messages where the toggle disables rather than enables

This commit is contained in:
dordsor21 2021-08-08 16:51:21 +01:00
parent 0e05935ad4
commit 4ee5e3d134
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -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())
);
}