Maaron Posted August 20, 2021 Share Posted August 20, 2021 I would like to know how to make a mute skript: If player's missing a permission like skript.chat, send them a message like "You cannot talk as a muted player." and then cancel the message. I would like that whoever helps me out add a /unmute command too. Link to comment Share on other sites More sharing options...
0 Lapzzo Posted August 20, 2021 Share Posted August 20, 2021 command /mute [<offline player>] [<number>]: permission: mute.* permission message: &cYou do not have permission for that! executable by: players and console trigger: if arg 1 is not set: message "&c/mute <player> <seconds>" if arg 1 is set: set {mute.%arg 1%} to number-argument broadcast "&b%arg 1% &6was muted by &c%player%" every 1 second: loop all players: if {mute.%loop-player%} is more than 0: remove 1 from {mute.%loop-player%} else: delete {mute.%loop-player%} on chat: if {mute.%player%} is more than 0: message "&6You can not talk while you are muted. &b%{mute.%player%}% &cseconds left." cancel event every 20 second: loop all players: if {mute.%loop-player%} is more than 0: set action bar of loop-player to "&6You can talk in &b%{mute.%loop-player%}% &cseconds." command /unmute [<offline player>]: permission: mute.* permission message: &cYou do not have permission for that! executable by: players and console trigger: if arg 1 is not set: message "&c/unmute <player>" if arg 1 is set: delete {mute.%arg 1%} broadcast "&b%arg-1% &6was unmuted by &c%player%" Link to comment Share on other sites More sharing options...
0 Lapzzo Posted August 20, 2021 Share Posted August 20, 2021 Also, just realised you posted this in help. For skript help, post topics in skript discussion 1 Link to comment Share on other sites More sharing options...
0 Maaron Posted August 20, 2021 Author Share Posted August 20, 2021 Can you make that op players cannot be muted? Link to comment Share on other sites More sharing options...
0 Lapzzo Posted August 22, 2021 Share Posted August 22, 2021 On 8/20/2021 at 3:35 PM, Maaron said: Can you make that op players cannot be muted? Sure! Let me get it skripted for ya! This will say that the player is muted when muted, but when the op chats, they will be able to talk command /mute [<offline player>] [<number>]: permission: mute.* permission message: &cYou do not have permission for that! executable by: players and console trigger: if arg 1 is not set: message "&c/mute <player> <seconds>" if arg 1 is set: set {mute.%arg 1%} to number-argument broadcast "&b%arg 1% &6was muted by &c%player%" every 1 second: loop all players: if {mute.%loop-player%} is more than 0: remove 1 from {mute.%loop-player%} else: delete {mute.%loop-player%} on chat: if player is op: set {NothingLol::%player%} to true else: if {mute.%player%} is more than 0: message "&6You can not talk while you are muted. &b%{mute.%player%}% &cseconds left." cancel event every 20 second: loop all players: if {mute.%loop-player%} is more than 0: set action bar of loop-player to "&6You can talk in &b%{mute.%loop-player%}% &cseconds." command /unmute [<offline player>]: permission: mute.* permission message: &cYou do not have permission for that! executable by: players and console trigger: if arg 1 is not set: message "&c/unmute <player>" if arg 1 is set: delete {mute.%arg 1%} broadcast "&b%arg-1% &6was unmuted by &c%player%" Link to comment Share on other sites More sharing options...
Question
Maaron
I would like to know how to make a mute skript:
If player's missing a permission like skript.chat, send them a message like "You cannot talk as a muted player."
and then cancel the message.
I would like that whoever helps me out add a /unmute command too.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now