Hey guys, i thought i got a working code to mute people:
This code doesn't give an error, but it doesn't work.
It a player is in {mutes::*}, but he can still talk.
Help?
code_language.skript:
command /mute [<player>]:
permission: mute.mute
trigger:
if arg-1 is set:
if {mutes::*} contain arg-1:
send "&b%arg-1% is already muted!" to player
stop
else:
add arg-1 to {mutes::*}
send "&b%arg-1% is now muted!" to player
send "&bYou are muted by %player%!" to arg-1
send "&b%player% muted %arg-1%!" to console
stop
else:
send "&bPlease define a player." to player
stop
This code doesn't give an error, but it doesn't work.
It a player is in {mutes::*}, but he can still talk.
Help?