fix banned pearl toggle again

This commit is contained in:
okx-code
2024-02-24 06:03:52 +00:00
parent 3e0666526f
commit ccf5cf5854

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