Advertisement
Guest User

Untitled

a guest
Mar 26th, 2021
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.98 KB | None | 0 0
  1. # SAC - Server AntiCheat // Ban/Tempban/Mute/Warn System #
  2. # Made by SortaCold#1234 #
  3. # DM if you have any problems #
  4.  
  5. # Options
  6.  
  7. options:
  8. # Prefix
  9. p: &a&lSAC &8&l»
  10. # Error prefix
  11. em: &c&lERROR &8&l»
  12. # Permission message
  13. pm: &c&lERROR &8&l» &cSorry! You do not have permission for that command.
  14. # mute message
  15. mm: &c&lERROR &8&l» &cYou cannot talk because you have been muted by a staff member.
  16.  
  17. # Main part
  18.  
  19. # Start of Mute Skript
  20.  
  21. command /mute [<offlineplayer>] [<text>]:
  22. trigger:
  23. if player has permission "sac.mute.use":
  24. if arg-1 is not set:
  25. send "{@em} &cPlease enter a username to unmute."
  26. stop
  27. set {muted.%arg-1%} to 1
  28. send "{@p} &aYou have muted &c%arg-1% &afor the reason: &e%arg-2%"
  29. send "{@p} &aYou have been muted for: &e%arg-2%" to arg-1
  30. loop all players:
  31. if loop-player has permission "sac.mute.see":
  32. send "{@p} &2%player% &aHas muted &c%arg-1% &afor the reason: &e%arg-2%" to loop-player
  33. on chat:
  34. if {muted.%player%} is 1:
  35. cancel event
  36. send "{@mm}"
  37.  
  38. command /unmute [<offlineplayer>]:
  39. trigger:
  40. if player has permission "sac.unmute.use":
  41. if arg-1 is not set:
  42. send "{@em} &cPlease enter a username to unmute."
  43. stop
  44. set {unmuted.%arg-1%} to 0
  45. send "{@p} &aYou have unmuted &c%arg-1%"
  46. send "{@p} &aYou have been unmuted by &2%player%" to arg-1
  47. loop all players:
  48. if loop-player has permission "sac.unmute.see":
  49. send "{@p} &2%player% &ahas unmuted &c%arg-1%" to loop-player
  50.  
  51. # End of Mute Skript #
  52.  
  53. # Start of Warn Skript #
  54.  
  55. command /warn [<offlineplayer>] [<text>]:
  56. trigger:
  57. if player has permission "sac.warn.use":
  58. if arg-1 is not set:
  59. send "{@em} &cPlease enter a username to warn."
  60. add 1 to {warn.%arg-1%}
  61. send "{@p} &aYou have been warned by &2%player% &afor the reason: &e%arg-2%" to arg-1
  62. send "{@p} &aYou have warned &c%arg-1% &afor: &e%arg-2%"
  63. loop all players:
  64. if loop-player has permission "sac.warn.see":
  65. send "{@p} &2%player% &aHas warned &c%arg-1% &afor the reason: &e%arg-2%"
  66.  
  67. command /warns [<offlineplayer>]:
  68. trigger:
  69. if player has permission "sac.warns.check":
  70. if {warn.%arg-1%} is not set:
  71. send "&2%arg-1%&2's &aWarns:"
  72. send ""
  73. send "&7Warns: &c0"
  74. stop
  75. send "&2%arg-1%&2's &aWarns:"
  76. send ""
  77. send "&7Warns: &c%{warn.%arg-1%}%"
  78.  
  79. command /resetwarns [<offlineplayer>]:
  80. trigger:
  81. if player has permission "sac.warns.reset":
  82. send "{@p} &aYou have resetted &c%arg-1%&c's &awarns."
  83. set {warn.%arg-1%} to 0
  84.  
  85. # End of Warns Skript
  86.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement