Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SAC - Server Anticheat // Ban - Tempban - Mute - Warn - Report #
- # SAC is made by SortaCold#1234 #
- # Have any suggestions or problems? DM me! #
- # (please give credits...)
- # Options #
- options:
- # prefix
- p: &a&lSAC &8&l»
- # error prefix
- ep: &c&lERROR &8&l»
- # perms msesage
- pm: &c&lERROR &8&l» &cYou do not have permission for that command!
- # End of Options #
- # Start of Mute Skript #
- on first join:
- set {muted::%player's uuid%} to 0
- command /mute [<offlineplayer>] [<text>]:
- trigger:
- if player has permission "sac.mute.use":
- if arg-1 is not set:
- send "{@p} &c Please enter a username to mute."
- stop
- if {muted::arg-1's uuid} is 0:
- set {muted::arg-1's uuid} to 1
- send "{@p} &aYou have been muted for: &e%arg-2%" to arg-1
- send "{@p} &aYou have muted &2%arg-1% &afor the reason: &e%arg-2%"
- stop
- else:
- {muted::arg-1's uuid} is 1:
- send "{@p} &aThat player is already muted."
- stop
- on chat:
- if {muted::%player%} is 1:
- cancel event
- stop
- command /unmute [<offlineplayer>]:
- trigger:
- if player has permission "sac.unmute.use":
- if arg-1 is not set:
- send "{@p} &cPlease enter a username to unmute."
- stop
- if {muted::arg-1's uuid} is 1:
- set {muted::arg-1's uuid} to 0
- send "{@p} &aYou have been unmuted." to arg-1
- send "{@p} &aYou have unmuted &c%arg-1%"
- else:
- {muted::arg-1's uuid} is 0:
- send "{@p} &cThat player is not muted."
- stop
- # End of Mute Skript #
- # Start of Warn Skript
- command /warn [<offlineplayer>] [<text>]:
- trigger:
- if player has permission "sac.warn.use":
- if arg-1 is not set:
- send "{@p} &cPlease enter a username to warn."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement