• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
  • Minecraft 1.16.220 Update + Bug/Crash Fixes
    Added MCPE 1.16.220 version and fixed crashes for multiple plugins. You can view the full changelist here.
  • Forum Updates - 4/11/2021
    Various changes have been made to the forums and a few categories. You can view the full changelist here.

Simple Mute and Unmute System

Warning!
Hello , there have been no replies in this thread for more than 30 days.
Please make sure you have a valid reason before you reply to this thread or you may face moderation action.

Raptor14

Tree Puncher
#1
A simple mute system, made by me.

/mute
Code:
cmd create mute Mutes a player!
cmd add mute load %muted%
cmd add mute let %player% = %args%[1]
cmd add mute if %player% in onlineplayers() then goto 6
cmd add mute message %p% §cThat player isnt online!
cmd add mute exit
cmd add mute if varset(%muted%) = %false% then %muted% = array()
cmd add mute if %player% in %muted% then message %p% §cThis player is already muted!
cmd add mute if %player% in %muted% then exit
cmd add mute %muted% = %muted% + array(%player%)
cmd add mute save %muted%
cmd add mute message %player% §cYou have been muted.
/unmute
Code:
cmd create unmute Unmutes a player!
cmd add unmute load %muted%
cmd add unmute let %player% = %args[1]
cmd add unmute if %player% notin %muted% then message %p% §cThis player is not muted.
cmd add unmute if %player% notin %muted% then exit
cmd add unmute %rem% = array(%player%)
cmd add unmute %muted% = %muted% - %rem%
cmd add unmute save %muted%
cmd add unmute message %player% §aYou have been unmuted.
/muted (the thing that makes them muted, not for manual use!)
Code:
cmd create muted Not for manual use!
cmd add muted load %muted%
cmd add muted if %p% in %muted% then cancel
cmd add muted save %muted%
cmd trigger chat muted
cmd unregister muted
[TIP] I recommend giving non-staff groups the permission "-cmd.run.mute" and "-cmd.run.unmute", you do so by doing /setgperm <group> <permission>

Let me know if theres any errors, thanks!
 
Last edited by a moderator:

Raptor14

Tree Puncher
#2
Can a Mod insert a line in /unmute between "cmd add unmute load %muted%" and "cmd add unmute if %player% notin
%muted% then message %p% §cThis player is not muted." between those to add a "cmd add unmute let %player% = %args%[1]"?