mirror of
https://github.com/plexusorg/Plex.git
synced 2024-05-19 11:01:28 +00:00
Update ToggleMenu.java / requested changes
This commit is contained in:
parent
e79141b415
commit
99c70eb713
|
@ -107,7 +107,7 @@ public class ToggleMenu extends AbstractMenu
|
|||
if (clicked.getType() == Material.OAK_SIGN)
|
||||
{
|
||||
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);
|
||||
player.sendMessage(PlexUtils.mmDeserialize("<gray>Toggled chat."));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue