mirror of
https://github.com/plexusorg/Plex.git
synced 2025-07-12 15:38:35 +00:00
Update ToggleMenu.java / requested changes
This commit is contained in:
@ -107,7 +107,7 @@ public class ToggleMenu extends AbstractMenu
|
|||||||
if (clicked.getType() == Material.OAK_SIGN)
|
if (clicked.getType() == Material.OAK_SIGN)
|
||||||
{
|
{
|
||||||
plugin.toggles.set("chat", !plugin.toggles.getBoolean("chat"));
|
plugin.toggles.set("chat", !plugin.toggles.getBoolean("chat"));
|
||||||
PlexUtils.broadcast(PlexUtils.messageComponent(plugin.toggles.getBoolean("chat") ? "chatOn" : "chatOff", player.getName()));
|
PlexUtils.broadcast(PlexUtils.messageComponent("chatToggled", player.getName(), plugin.toggles.getBoolean("chat") ? "on" : "off"));
|
||||||
resetChatItem(inventory);
|
resetChatItem(inventory);
|
||||||
player.sendMessage(PlexUtils.mmDeserialize("<gray>Toggled chat."));
|
player.sendMessage(PlexUtils.mmDeserialize("<gray>Toggled chat."));
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user