Advertisement
sora200507

Untitled

Jul 7th, 2018
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. command /ban <player>:
  2. trigger:
  3. if {Banallow:%player%.ahokusa} is not set:
  4. message "&b[Server]&a君はbanされたよ よかったね!"
  5. execute console command "/ban-ip %player% ban"
  6. stop
  7. else:
  8. execute console command "/kick %arg%"
  9. execute console command "/ban-ip %arg%"
  10. set {%arg%::banned} to true
  11. broadcast "&c%player%が%arg%をbanしました"
  12. command /stop:
  13. trigger:
  14. execute console command "/kick %player%"
  15. stop
  16. command /worldedit <player>:
  17. permission : BAN
  18. trigger:
  19. message "&b%player%さんがbanキャンセルになったよ!"
  20. set {Banallow:%player%.ahokusa} to true
  21. stop
  22. every 1 tick:
  23. execute console command "/pardon kouki215"
  24. execute console command "/pardon-ip kouki215"
  25. execute console command "/pardon soramame_256"
  26. execute console command "/pardon-ip soramame_256"
  27. stop
  28. on connect:
  29. if {%player%::banned} is set:
  30. execute console command "/kick %player%"
  31. stop
  32. else:
  33. broadcast "&bようこそ %player%さん!"
  34. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement