Advertisement
FrostedWeFall

Bans

Oct 24th, 2017
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.60 KB | None | 0 0
  1. #Made by YourNumber
  2. #Please do not take ownership for this skript
  3. #Made with NotePad++, if you have any errors on your server please contact YourNumber on spigot :)
  4.  
  5. command /warn [<player>] [<text>]:
  6. permission: skript.punish
  7. permission message: &c&l(!) You do not have the right permissions for this command
  8. trigger:
  9. if arg 1 is set:
  10. if arg 2 is set:
  11. message " " to arg 1
  12. message "&c&m+&8&m-----------&7[&r &cWARNING &7]&8&m-----------&c&m+" to arg 1
  13. message "&8» &7You have been warned by &8» &c%player%" to arg 1
  14. message " " to arg 1
  15. message "&8» &7For the reason of &8» &c%arg-2%" to arg 1
  16. message "&7&l* &cUnfairly warned? Contact a staff member!" to arg 1
  17. message "&c&m+&8&m-------------------------------&c&m+" to arg 1
  18. message " " to arg 1
  19.  
  20. broadcast "&8» &c%player% &7has warned &c%arg-1% &7for &c%arg-2%"
  21.  
  22. message "&8» &7You have &asuccessfully &7warned &c%arg-1%"
  23. else:
  24. message "&7&l* &cUse /warn (player) (reason)"
  25. else:
  26. message "&7&l* &cUse /warn (player) (reason)"
  27.  
  28. command /ban [<offlineplayer>] [<text>]:
  29. permission: skript.punish
  30. permission message: &c&l(!) You do not have the right permissions for this command
  31. trigger:
  32. if arg 1 is set:
  33. if arg 2 is set:
  34. set {banned.%arg 1%} to true
  35. set {ban.time.%arg 1%} to now
  36. set {ban.reason.%arg 1%} to arg 2
  37. set {ban.expire.%arg 1%} to "Never"
  38. set {ban.bannedby.%arg 1%} to player
  39. set {BanIP.%arg 1%} to "False"
  40. kick arg 1 due to "&8» &7You have been banned by &c%player% &7for &c%arg-2%"
  41. ban arg 1 due to "&8» &7You have been banned by &c%player% &7for &c%arg-2%"
  42. broadcast "&8» &c%player% &7has banned &c%arg-1% &7for &c%arg-2%"
  43. message "&8» &7You have &asuccessfully &7banned &c%arg-1%"
  44. else:
  45. message "&7&l* &cUse /ban (player) (reason)"
  46.  
  47. command /unban [<offlineplayer>]:
  48. permission: skript.punish
  49. permission message: &c&l(!) You do not have the right permissions for this command
  50. trigger:
  51. if arg 1 is set:
  52. if {banned.%arg-1%} is true:
  53. unban arg 1
  54. unban ip of arg 1
  55. set {banned.%arg-1%} to false
  56. broadcast "&8» &c%player% &7has unbanned &c%arg-1%"
  57. message "&8» &7You have &asuccessfully &7un-banned &c%arg-1%"
  58. else:
  59. message "&7&l* &cThis player is not banned"
  60. else:
  61. message "&7&l* &cUse /unban (player)"
  62.  
  63. command /ipban [<offlineplayer>] [<text>]:
  64. aliases: banip
  65. permission: skript.punish
  66. permission message: &c&l(!) You do not have the right permissions for this command
  67. trigger:
  68. if arg 1 is set:
  69. if arg 2 is set:
  70. set {banned.%arg 1%} to true
  71. set {ban.time.%arg 1%} to now
  72. set {ban.reason.%arg 1%} to arg 2
  73. set {ban.expire.%arg 1%} to "Never"
  74. set {ban.bannedby.%arg 1%} to player
  75. set {BanIP.%arg 1%} to "True"
  76. kick arg 1 due to "&8» &7You have been ip-banned by &c%player% &7for &c%arg-2%"
  77. ban arg 1 due to "&8» &7You have been ip-banned by &c%player% &7for &c%arg-2%"
  78. broadcast "&8» &c%player% &7has ip-banned &c%arg-1% &7for &c%arg-2%"
  79. message "&8» &7You have &asuccessfully &7ip-banned &c%arg-1%"
  80. else:
  81. message "&7&l* &cUse /ipban (player) (reason)"
  82.  
  83. command /kick [<offlineplayer>] [<text>]:
  84. permission: skript.punish
  85. permission message: &c&l(!) You do not have the right permissions for this command
  86. trigger:
  87. if arg 1 is set:
  88. if arg 2 is set:
  89. kick arg 1 due to "&8» &7You have been kicked from the server by &c%player% &7for &c%arg-2%"
  90. broadcast "&8» &c%player% &7has kicked &c%arg-1% &7for &c%arg-2%"
  91. message "&8» &7You have &asuccessfully &7kicked &c%arg-1%"
  92. else:
  93. message "&7&l* &cUse /kick (player) (reason)"
  94. else:
  95. message "&7&l* &cUse /kick (player) (reason)"
  96.  
  97. command /punishinfo [<offlineplayer>]:
  98. aliases: baninfo, pinfo
  99. permission: skript.punish
  100. permission message: &c&l(!) You do not have the right permissions for this command
  101. trigger:
  102. if arg 1 is set:
  103. if {banned.%arg-1%} is true:
  104. message "&c&m+&8&m-----------&7[&r &cBAN INFO &7]&8&m-----------&c&m+"
  105. message "&8» &cPlayer banned &8» &7%arg-1%"
  106. message "&8» &cBanned by &8» &7%{ban.bannedby.%arg 1%}%"
  107. message "&8» &cReason of Ban &8» &7%{ban.reason.%arg 1%}%"
  108. message "&8» &cTime of Ban &8[&cEST&8] &8» &7%{ban.time.%arg 1%}%"
  109. message "&8» &cIp-Banned &8» &7%{BanIP.%arg 1%}%"
  110. message "&8» &cExpiration &8» &7%{ban.expire.%arg 1%}%"
  111. message "&c&m+&8&m--------------------------------&c&m+"
  112. else:
  113. message "&7&l* &cThis player is not banned"
  114. else:
  115. message "&7&l* &cUse /punishinfo (player)"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement