Add a toggle option for toggling chat (#89)

* Add moderated mode toggle option

* Add new messages to messages.yml for modmode toggle

* Add block_on_modmode list for commands to block, should be separate from block_on_mute so pms can still work

* Implement the restricted chat toggle

* Add the restricted chat toggle to the toggle gui

* Add the restricted chat toggle to the consoles version of the command as well

* Update toggles.yml / requested changes

* Update messages.yml / requested changes

* Update commands.yml / requested changes

* Update ToggleMenu.java / requested changes

* Update TogglesListener.java / requested changes

* Update ToggleCMD.java / requested changes

* Update messages.yml / requested changes

* Update ToggleMenu.java / requested changes

* Update ToggleCMD.java / requested changes
This commit is contained in:
Deauthorized
2024-04-28 13:04:18 -04:00
committed by GitHub
parent 315e16488b
commit 357683a0f6
6 changed files with 86 additions and 3 deletions
+2 -2
View File
@@ -54,10 +54,10 @@ commands:
- "r:a:^(co|core|coreprotect) (rb|rollback|l|lookup|rl|reload):_"
- "r:e:^[A-z]*:[A-z]*::<gray>Plugin specific commands are disabled."
# These commands will be blocked when a player is muted
# These commands will be blocked when a player is muted or when chat is toggled off.
block_on_mute:
- me
- say
- msg
- reply
- mail
- mail
+4
View File
@@ -110,6 +110,10 @@ playerFrozen: "<red>That player is already frozen!"
playerMuted: "<red>That player is already muted!"
playerLockedUp: "<red>That player is already locked up!"
muted: "<red>You are currently muted - STFU!"
chatIsOff: "<red>Chat is currently toggled off!"
# 0 - The command sender
# 1 - The set value of the chat toggle
chatToggled: "<red>{0} - Toggled chat {1}"
# 0 - The command sender
# 1 - The player
kickedPlayer: "<red>{0} - Kicking {1}"
+4 -1
View File
@@ -10,4 +10,7 @@ fluidspread: true
drops: true
# Should redstone be enabled?
redstone: true
redstone: true
# Is chat enabled?
chat: true