mirror of
https://github.com/plexusorg/Plex.git
synced 2024-05-19 02:51:29 +00:00
Add the restricted chat toggle to the consoles version of the command as well
This commit is contained in:
parent
0b824fc7fd
commit
47bd1b6170
|
@ -32,6 +32,7 @@ public class ToggleCMD extends PlexCommand
|
|||
sender.sendMessage(PlexUtils.mmDeserialize("<gray> - Fluidspread" + status("fluidspread")));
|
||||
sender.sendMessage(PlexUtils.mmDeserialize("<gray> - Drops" + status("drops")));
|
||||
sender.sendMessage(PlexUtils.mmDeserialize("<gray> - Redstone" + status("redstone")));
|
||||
sender.sendMessage(PlexUtils.mmDeserialize("<gray> - Admin-only public chat (modmode)" + status("moderated")));
|
||||
return null;
|
||||
}
|
||||
switch (args[0].toLowerCase())
|
||||
|
@ -52,6 +53,11 @@ public class ToggleCMD extends PlexCommand
|
|||
{
|
||||
return toggle("redstone");
|
||||
}
|
||||
case "modmode" ->
|
||||
{
|
||||
PlexUtils.broadcast(messageComponent(plugin.toggles.getBoolean("moderated") ? "modModeOff" : "modModeOn", sender.getName()));
|
||||
return toggle("moderated");
|
||||
}
|
||||
default ->
|
||||
{
|
||||
return messageComponent("invalidToggle");
|
||||
|
|
Loading…
Reference in a new issue