Advertisement
Guest User

Untitled

a guest
Mar 26th, 2021
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. # SAC - Server Anticheat // Ban - Tempban - Mute - Warn - Report #
  2. # SAC is made by SortaCold#1234 #
  3. # Have any suggestions or problems? DM me! #
  4. # (please give credits...)
  5.  
  6. # Options #
  7.  
  8. options:
  9. # prefix
  10. p: &a&lSAC &8&l»
  11. # error prefix
  12. ep: &c&lERROR &8&l»
  13. # perms msesage
  14. pm: &c&lERROR &8&l» &cYou do not have permission for that command!
  15.  
  16. # End of Options #
  17.  
  18. # Start of Mute Skript #
  19.  
  20. on first join:
  21. set {muted::%player's uuid%} to 0
  22.  
  23. command /mute [<offlineplayer>] [<text>]:
  24. trigger:
  25. if player has permission "sac.mute.use":
  26. if arg-1 is not set:
  27. send "{@p} &c Please enter a username to mute."
  28. stop
  29. if {muted::arg-1's uuid} is 0:
  30. set {muted::arg-1's uuid} to 1
  31. send "{@p} &aYou have been muted for: &e%arg-2%" to arg-1
  32. send "{@p} &aYou have muted &2%arg-1% &afor the reason: &e%arg-2%"
  33. stop
  34. else:
  35. {muted::arg-1's uuid} is 1:
  36. send "{@p} &aThat player is already muted."
  37. stop
  38.  
  39. on chat:
  40. if {muted::%player%} is 1:
  41. cancel event
  42. stop
  43.  
  44. command /unmute [<offlineplayer>]:
  45. trigger:
  46. if player has permission "sac.unmute.use":
  47. if arg-1 is not set:
  48. send "{@p} &cPlease enter a username to unmute."
  49. stop
  50. if {muted::arg-1's uuid} is 1:
  51. set {muted::arg-1's uuid} to 0
  52. send "{@p} &aYou have been unmuted." to arg-1
  53. send "{@p} &aYou have unmuted &c%arg-1%"
  54. else:
  55. {muted::arg-1's uuid} is 0:
  56. send "{@p} &cThat player is not muted."
  57. stop
  58.  
  59. # End of Mute Skript #
  60.  
  61. # Start of Warn Skript
  62.  
  63. command /warn [<offlineplayer>] [<text>]:
  64. trigger:
  65. if player has permission "sac.warn.use":
  66. if arg-1 is not set:
  67. send "{@p} &cPlease enter a username to warn."
  68.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement