Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
316
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.60 KB | None | 0 0
  1. command /banlist:
  2. trigger:
  3. if player does not have permission "ban.use":
  4. send "&cYou are not permitted to run this command!"
  5. stop
  6. if "%{banlist::*}%" is "<none>":
  7. send "&7No players are banned!"
  8. stop
  9. send "&9Current players banned:&7 %{banlist::*}%"
  10.  
  11. every 1 second:
  12. loop {banlist::*}:
  13. if {%loop-value%.banned} is set:
  14. if difference between now and {%loop-value%.banned} >= {%loop-value%.length}:
  15. unban loop-value
  16. remove loop-value from {banlist::*}
  17. clear {%loop-value%.banned}
  18. clear {%loop-value%.length}
  19.  
  20. command /unban [<offlineplayer>] [<text>]:
  21. trigger:
  22. if player does not have permission "unban.use":
  23. send "&cYou are not permitted to run this command!"
  24. stop
  25. if arg-1 is not set:
  26. send "&c/unban (player) [-s]"
  27. stop
  28. if player is not set:
  29. set {_p} to "CONSOLE"
  30. else:
  31. set {_p} to player
  32. if arg-1 is not banned:
  33. send "&cThat player is not banned!"
  34. stop
  35. if arg-2 contains "-s":
  36. replace all " -s" and "-s " with "" in {_r}
  37. set {_silent} to true
  38. if {_silent} is set:
  39. loop all players:
  40. if loop-player has permission "ban.use":
  41. send "&7&o(SILENT) &3%{_p}% &7unbanned &3%arg-1%" to loop-player
  42. else:
  43. broadcast "&3%{_p}% &7unbanned &3%arg-1%"
  44. unban arg-1
  45. remove arg-1 from {banlist::*}
  46.  
  47. command /tempban [<offlineplayer>] [<text>] [<timespan>]:
  48. trigger:
  49. if player does not have permission "tempban.use":
  50. send "&cYou are not permitted to run this command!"
  51. stop
  52. if arg-2 is not set:
  53. send "&c/tempban (player) [reason] [-s] (time)"
  54. stop
  55. if arg-1 has permission "tempban.use":
  56. send "&cThat player cannot be banned!"
  57. stop
  58. if player is not set:
  59. set {_p} to "CONSOLE"
  60. else:
  61. set {_p} to player
  62. if arg-1 is banned:
  63. send "&cThat player is already banned!"
  64. stop
  65. if arg-2 is not set:
  66. set {_r} to "N/A"
  67. else:
  68. set {_r} to arg-2
  69. set {_l} to "%arg-3%"
  70. set {_l} to "%capitalized {_l}%"
  71. if {_r} contains "-s":
  72. replace all " -s" and "-s " with "" in {_r}
  73. set {_silent} to true
  74. if {_silent} is set:
  75. loop all players:
  76. if loop-player has permission "tempban.use":
  77. send "&7&o(SILENT) &3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[%{_l}%]" to loop-player
  78. else:
  79. broadcast "&3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[%{_l}%]"
  80. ban arg-1 due to {_r}
  81. if arg-1 is online:
  82. kick arg-1 due to "&7You are now banned! &9Reason: &7%{_r}% &f &f &f &f &9Length: &7%arg-3%"
  83. add arg-1 to {banlist::*}
  84. set {%arg-1%.banned} to now
  85. set {%arg-1%.length} to arg-3
  86.  
  87. command /ban [<offlineplayer>] [<text>]:
  88. trigger:
  89. if player does not have permission "ban.use":
  90. send "&cYou are not permitted to run this command!"
  91. stop
  92. if arg-1 is not set:
  93. send "&c/ban (player) [reason] [-s]"
  94. stop
  95. if arg-1 has permission "ban.use":
  96. send "&cThat player cannot be banned!"
  97. stop
  98. if player is not set:
  99. set {_p} to "CONSOLE"
  100. else:
  101. set {_p} to player
  102. if arg-1 is banned:
  103. send "&cThat player is already banned!"
  104. stop
  105. if arg-2 is not set:
  106. set {_r} to "N/A"
  107. else:
  108. set {_r} to arg-2
  109. if {_r} contains "-s":
  110. replace all " -s" and "-s " with "" in {_r}
  111. set {_silent} to true
  112. if {_silent} is set:
  113. loop all players:
  114. if loop-player has permission "ban.use":
  115. send "&7&o(SILENT) &3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[FOREVER]" to loop-player
  116. else:
  117. broadcast "&3%{_p}% &7banned &3%arg-1% &7for &c%{_r}% &7[FOREVER]"
  118. ban arg-1 due to {_r}
  119. if arg-1 is online:
  120. kick arg-1 due to "&7You are now banned! &9Reason: &7%{_r}%"
  121. add arg-1 to {banlist::*}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement