kjfalkeiae

Untitled

Mar 14th, 2019
460
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.94 KB | None | 0 0
  1. command /ban [<offline player>] [<text>]:
  2. trigger:
  3. if sender does not have permission "minecraft.command.ban":
  4. send "&cYou do not have permission to do this."
  5. stop
  6. if sender is not player:
  7. if sender is not console:
  8. send "&cBan command can executable by player or console."
  9. stop
  10. if arg 1 is not set:
  11. send "&cUsage: /ban <Player> [Reason]"
  12. stop
  13. if arg 1 has permission "skban.bypass":
  14. if sender is not console:
  15. send "&cYou can't banned this player."
  16. stop
  17. if uuid of arg 1 contains {banlist::*}:
  18. send "&cThis player already banned."
  19. stop
  20. add arg 1 to {banlist-view::*}
  21. add uuid of arg 1 to {banlist::*}
  22. add ip of arg 1 to {banlist-ip::*}
  23. set {ban.%uuid of arg 1%.by} to name of sender
  24. set {ban.%uuid of arg 1%.reason} to coloured arg 2
  25. if arg 2 is not set:
  26. set {ban.%uuid of arg 1%.reason} to ""
  27. set {ban.%uuid of arg 1%.ip} to ip of arg 1
  28. broadcast "&c[Banned]&d%arg 1%&e was banned from this server."
  29. broadcast "&c[Banned]&eBanned by:&d %sender%"
  30. if arg 2 is set:
  31. broadcast "&c[Banned]&eBan reason:&r%coloured arg 2%"
  32. kick the arg 1 due to "&eYou are banned by &d%sender%&e.Ban reason:&r%coloured arg 2%&e."
  33. stop
  34. broadcast "&c[Banned]&eBan reason is not set."
  35. kick the arg 1 due to "&eYou are banned by &d%sender%&e.Ban reason is not set."
  36.  
  37. command /unban [<offline player>]:
  38. trigger:
  39. if sender does not have permission "minecraft.command.pardon":
  40. send "&cYou do not have permission to do this."
  41. stop
  42. if sender is not player:
  43. if sender is not console:
  44. send "&cUnban command can executable by player or console."
  45. stop
  46. if arg 1 is not set:
  47. send "&cUsage: /unban <Player>"
  48. stop
  49. if uuid of arg 1 does not contain {banlist::*}:
  50. send "&cThis player does not banned."
  51. send "&bYou can use /banlist to see banlist."
  52. stop
  53. remove arg 1 from {banlist-view::*}
  54. remove uuid of arg 1 from {banlist::*}
  55. remove {ban.%uuid of arg 1%.ip} from {banlist-ip::*}
  56. set {ban.%uuid of arg 1%.by} to ""
  57. set {ban.%uuid of arg 1%.reason} to ""
  58. broadcast "&b[Unbanned]&d%arg 1%&e was unbanned from this server."
  59. broadcast "&b[Unbanned]&eUnbanned by:&d %sender%"
  60. stop
  61. command /banlist [<text>]:
  62. trigger:
  63. if amount of {banlist::*} is 0:
  64. send "&bThis server do not ban anyone."
  65. stop
  66. if arg 1 is "more":
  67. send "&eThis server was banned &a%amount of {banlist::*}%&e players."
  68. loop {banlist-view::*}:
  69. add 1 to {_count}
  70. send "&a%{_count}%&b.&e%loop-value%"
  71. send "&aBanned by:&e%{ban.%uuid of loop-value%.by}%"
  72. send "&aReason:&e%{ban.%uuid of loop-value%.reason}%"
  73. send "&7-------------------"
  74. stop
  75. if arg 1 is "smart":
  76. send "&eThis server was banned &a%amount of {banlist::*}%&e players."
  77. send "%{banlist-view::*}%"
  78. stop
  79. if arg 1 is "normal":
  80. send "&eThis server was banned &a%amount of {banlist::*}%&e players."
  81. loop {banlist-view::*}:
  82. add 1 to {_count}
  83. send "&a%{_count}%&b.&e%loop-value%"
  84. stop
  85. send "&cUsage: /banlist <Option>"
  86. send "more...You can get a lot of information."
  87. send "smart...You can get the minimum information."
  88. send "normal...The information that can be obtained as smart does not change, but it is easier to read."
  89. on connect:
  90. if uuid of player contains {banlist::*}:
  91. if {ban.%uuid of player%.reason} is not "":
  92. kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason:&r%{ban.%uuid of player%.reason}%"
  93. broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
  94. stop
  95. kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason is not set."
  96. broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
  97. if ip of player contains {banlist::*}:
  98. if {ban.%uuid of player%.reason} is not "":
  99. kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason:&r%{ban.%uuid of player%.reason}%"
  100. broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
  101. stop
  102. kick the player due to "&eYou are banned by &d%{ban.%uuid of player%.by}%&e.Ban reason is not set."
  103. broadcast "&e[Canceled]&b%player%&e connected. But &b%player%&e was banned!"
Advertisement
Add Comment
Please, Sign In to add comment