Update ToggleCMD.java / requested changes

This commit is contained in:
Deauthorized
2024-04-28 03:02:43 -04:00
committed by GitHub
parent 99c70eb713
commit 87d94909bc

View File

@ -55,7 +55,7 @@ public class ToggleCMD extends PlexCommand
}
case "chat" ->
{
PlexUtils.broadcast(messageComponent(plugin.toggles.getBoolean("chat") ? "chatOff" : "chatOn", sender.getName()));
PlexUtils.broadcast(PlexUtils.messageComponent("chatToggled", sender.getName(), plugin.toggles.getBoolean("chat") ? "off" : "on"));
return toggle("chat");
}
default ->