Merge pull request #328 from CivMC/fixtoggle

fix banned pearl toggle again
This commit is contained in:
okx-code
2024-02-24 06:04:17 +00:00
committed by GitHub

View File

@@ -226,7 +226,7 @@ public class CmdShowAllPearls extends PearlCommand {
Component.text()
.decoration(TextDecoration.ITALIC, false)
.color(NamedTextColor.AQUA)
.content("Currently turned " + (!bannedPearlToggle ? "on" : "off"))
.content("Currently turned " + (bannedPearlToggle ? "on" : "off"))
.build());
return true;
});
@@ -241,7 +241,7 @@ public class CmdShowAllPearls extends PearlCommand {
}
clicker.sendMessage(Component.text()
.color(NamedTextColor.GREEN)
.content("Banned pearls toggled " + (bannedPearlToggle ? "on" : "off"))
.content("Banned pearls toggled " + (!bannedPearlToggle ? "on" : "off"))
.build());
generateOpenPearlsMenu(clicker);
}