mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 05:06:44 +01:00
Invert toggle messages where the toggle disables rather than enables
This commit is contained in:
parent
0e05935ad4
commit
4ee5e3d134
@ -114,12 +114,12 @@ public class Toggle extends Command {
|
|||||||
) {
|
) {
|
||||||
if (toggle(player, "ignoreExpireTask")) {
|
if (toggle(player, "ignoreExpireTask")) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("toggle.toggle_disabled"),
|
TranslatableCaption.of("toggle.toggle_enabled"),
|
||||||
Template.of("setting", command.toString())
|
Template.of("setting", command.toString())
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("toggle.toggle_enabled"),
|
TranslatableCaption.of("toggle.toggle_disabled"),
|
||||||
Template.of("setting", command.toString())
|
Template.of("setting", command.toString())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -134,12 +134,12 @@ public class Toggle extends Command {
|
|||||||
) {
|
) {
|
||||||
if (toggle(player, "disabletitles")) {
|
if (toggle(player, "disabletitles")) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("toggle.toggle_disabled"),
|
TranslatableCaption.of("toggle.toggle_enabled"),
|
||||||
Template.of("setting", command.toString())
|
Template.of("setting", command.toString())
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("toggle.toggle_enabled"),
|
TranslatableCaption.of("toggle.toggle_disabled"),
|
||||||
Template.of("setting", command.toString())
|
Template.of("setting", command.toString())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -154,12 +154,12 @@ public class Toggle extends Command {
|
|||||||
) {
|
) {
|
||||||
if (toggle(player, "disabletime")) {
|
if (toggle(player, "disabletime")) {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("toggle.toggle_disabled"),
|
TranslatableCaption.of("toggle.toggle_enabled"),
|
||||||
Template.of("setting", command.toString())
|
Template.of("setting", command.toString())
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
player.sendMessage(
|
player.sendMessage(
|
||||||
TranslatableCaption.of("toggle.toggle_enabled"),
|
TranslatableCaption.of("toggle.toggle_disabled"),
|
||||||
Template.of("setting", command.toString())
|
Template.of("setting", command.toString())
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user