Advertisement
HyperFlame

Update 3

Jun 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. command /ban [<offline player>] [<text>]:
  2. description: Ban the naughty people!
  3. usage: /ban <player> <reason>
  4. permission: skript.ban
  5. permission message: &cYou do not have permission to use this command!
  6. trigger:
  7. if arg 1 is not set:
  8. send "&cPlease specify a player." to player
  9. else if arg 2 is not set:
  10. send "&cPlease specify a reason." to player
  11. else if {ban.%arg 1%} is true:
  12. send "&cPlayer is already banned." to player
  13. else if {ban.%arg 1%} is not set:
  14. send "&cThis player has not even joined the server!" to player
  15. else:
  16. broadcast "&b%arg 1% &7was banned for &b%arg 2%&7 by &b%player%&7."
  17. ban arg 1 by ip
  18. set {banned.%arg 1%} to true
  19.  
  20. command /unban [<offline player>]:
  21. description: Forgive the punished!
  22. usage: /unban <player>
  23. permission: skript.unban
  24. permission message: &cYou do not have permission to use this command!
  25. trigger:
  26. if arg 1 is not set:
  27. send "&cPlease specify a player." to player
  28. else if {ban.%arg 1%} is false:
  29. send "&cPlayer is not currently banned."
  30. else if {ban.%arg 1%} is not set:
  31. send "&cThis player has not even joined the server!" to player
  32. else:
  33. broadcast "&b%arg 1% &7has been unbanned by &b%player%&7."
  34. unban arg 1 by ip
  35.  
  36. command /mute [<offline player>] [<text>]:
  37. description: Mute the naughty!
  38. usage: /mute <player> <reason>
  39. permission: skript.mute
  40. permission message: &cYou do not have permission to use this command!
  41. trigger:
  42. if arg 1 is not set:
  43. send "&cPlease specify a player." to player
  44. else if arg 2 is not set:
  45. send "&cPlease specify a reason." to player
  46. else if {mute.%arg 1%} is true:
  47. send "&cPlayer is already muted." to player
  48. else:
  49. broadcast "&b%arg 1% &7has been muted for &b%arg 2% &7by &b%player%&7."
  50. set {mute.%arg 1%} to true
  51.  
  52. command /unmute [<offline player>]:
  53. description: Give voice to those who cannot speak!
  54. usage: /unmute <player>
  55. permission: skript.unmute
  56. permission message: &cYou do not have permission to use this command!
  57. trigger:
  58. if arg 1 is not set:
  59. send "&cPlease specify a player." to player
  60. else if {mute.%arg 1%} is false:
  61. send "&cPlayer is not currently banned." to player
  62. else if {mute.%arg 1%} is not set:
  63. send "&cThis player has not even joined the server!" to player
  64. else:
  65. broadcast "&b%arg 1% &7has been unmuted by &b%player%&7."
  66. set {mute.%arg 1%} to false
  67.  
  68. command /warn [<offline player>] [<text>]:
  69. description: Warn the naughty!
  70. usage: /warn <player> <reason>
  71. permission: skript.warn
  72. permission message: &cYou do not have permission to use this command!
  73. trigger:
  74. if arg 1 is not set:
  75. send "&cPlease specify a player." to player
  76. else if arg 2 is not set:
  77. send "&cPlease specify a reason." to player
  78. else if {mute.%arg 1%} is true:
  79. send "&cPlayer is already muted. (Cannot get more warns)" to player
  80. else if {mute.%arg 1%} is not set:
  81. send "&cThis player has not even joined the server!" to player
  82. else:
  83. broadcast "&b%arg 1% &7has been warned for &b%arg 2% &7by &b%player%&7."
  84. add 1 to {warn.%arg 1%}
  85. if {warn.%arg 1%} is 3:
  86. broadcast "&b%arg 1% &7has been automatically muted for &breaching three warns&7."
  87. set {mute.%arg 1%} to true
  88. delete {warn.%arg 1%}
  89.  
  90. command /kick [<offline player>] [<text>]:
  91. description: Kick the naughty!
  92. usage: /kick <player> <reason>
  93. permission: skript.kick
  94. permission message: &cYou do not have permission to use this command!
  95. trigger:
  96. if arg 1 is not set:
  97. send "&cPlease specify a player." to player
  98. else if arg 2 is not set:
  99. send "&cPlease specify a reason." to player
  100. else:
  101. broadcast "&b%arg 1% &7has been kicked for &b%arg 2% &7by &b%player%&7."
  102. kick arg 1
  103.  
  104. on chat:
  105. if {mute.%player%} is true:
  106. cancel event
  107. send "&cYou were a naughty boy and as a result you have lost your permission to talk." to player
  108. else:
  109. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement