Jail System
Combine muting with jailing for comprehensive punishment.
Prevent players from chatting for a specified time. Useful for spam control and temporary punishment without banning.
Mute a player for a set duration:
/cmd add mute tellraw ${mute_player} {"text":"You have been muted for 5 minutes!","color":"red"} && scoreboard players set ${mute_player} mute_time 6000
Block muted players from sending messages:
// This would require a function that runs on chat events
// Create mute_check.mcfunction
execute as @a[scores={mute_time=1..}] run tellraw @s {"text":"You are muted!","color":"red"} && kill @e[type=minecraft:item,distance=..1] // Cancel message
// In syntax.json
{
"mute": {
"pattern": "/mute ",
"description": "Mute a player for specified minutes"
},
"unmute": {
"pattern": "/unmute ",
"description": "Unmute a player"
}
}
// In aliases.json
{
"mute_player": "tellraw ${mute_player} {\"text\":\"Muted for ${mute_minutes} minutes!\",\"color\":\"red\"} && scoreboard players set ${mute_player} mute_time ${mute_minutes}*1200",
"unmute_player": "tellraw ${unmute_player} {\"text\":\"You have been unmuted!\",\"color\":\"green\"} && scoreboard players reset ${unmute_player} mute_time"
}
Countdown and automatic unmute:
/cmd add mute_tick execute as @a[scores={mute_time=1..}] run scoreboard players remove @s mute_time 1 && execute as @a[scores={mute_time=0}] run tellraw @s {"text":"Mute expired!","color":"green"} && scoreboard players reset @s mute_time
Combine muting with jailing for comprehensive punishment.
Escalation from muting to permanent bans.
Create flexible mute commands with parameters.