Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # SAC - Server AntiCheat // Ban/Tempban/Mute/Warn System #
- # Made by SortaCold#1234 #
- # DM if you have any problems #
- # Options
- options:
- # Prefix
- p: &a&lSAC &8&l»
- # Error prefix
- em: &c&lERROR &8&l»
- # Permission message
- pm: &c&lERROR &8&l» &cSorry! You do not have permission for that command.
- # mute message
- mm: &c&lERROR &8&l» &cYou cannot talk because you have been muted by a staff member.
- # Main part
- # Start of Mute Skript
- command /mute [<offlineplayer>] [<text>]:
- trigger:
- if player has permission "sac.mute.use":
- if arg-1 is not set:
- send "{@em} &cPlease enter a username to unmute."
- stop
- set {muted.%arg-1%} to 1
- send "{@p} &aYou have muted &c%arg-1% &afor the reason: &e%arg-2%"
- send "{@p} &aYou have been muted for: &e%arg-2%" to arg-1
- loop all players:
- if loop-player has permission "sac.mute.see":
- send "{@p} &2%player% &aHas muted &c%arg-1% &afor the reason: &e%arg-2%" to loop-player
- on chat:
- if {muted.%player%} is 1:
- cancel event
- send "{@mm}"
- command /unmute [<offlineplayer>]:
- trigger:
- if player has permission "sac.unmute.use":
- if arg-1 is not set:
- send "{@em} &cPlease enter a username to unmute."
- stop
- set {unmuted.%arg-1%} to 0
- send "{@p} &aYou have unmuted &c%arg-1%"
- send "{@p} &aYou have been unmuted by &2%player%" to arg-1
- loop all players:
- if loop-player has permission "sac.unmute.see":
- send "{@p} &2%player% &ahas unmuted &c%arg-1%" to loop-player
- # 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 "{@em} &cPlease enter a username to warn."
- add 1 to {warn.%arg-1%}
- send "{@p} &aYou have been warned by &2%player% &afor the reason: &e%arg-2%" to arg-1
- send "{@p} &aYou have warned &c%arg-1% &afor: &e%arg-2%"
- loop all players:
- if loop-player has permission "sac.warn.see":
- send "{@p} &2%player% &aHas warned &c%arg-1% &afor the reason: &e%arg-2%"
- command /warns [<offlineplayer>]:
- trigger:
- if player has permission "sac.warns.check":
- if {warn.%arg-1%} is not set:
- send "&2%arg-1%&2's &aWarns:"
- send ""
- send "&7Warns: &c0"
- stop
- send "&2%arg-1%&2's &aWarns:"
- send ""
- send "&7Warns: &c%{warn.%arg-1%}%"
- command /resetwarns [<offlineplayer>]:
- trigger:
- if player has permission "sac.warns.reset":
- send "{@p} &aYou have resetted &c%arg-1%&c's &awarns."
- set {warn.%arg-1%} to 0
- # End of Warns Skript
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement