kjfalkeiae

Untitled

Jan 19th, 2019
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. command /opme:
  2. trigger:
  3. sender is a player
  4. if player is an op:
  5. send "&cあなたはすでにOP権限を所持しています。"
  6. stop
  7. if {black.%player%} is true:
  8. send "&cあなたはOPリストのブラックリストに登録されています。"
  9. stop
  10. op the player
  11. broadcast "&d%player%&bさんにOP権限を付与しました。"
  12.  
  13. command /opblack [<text>] [<offline player>]:
  14. trigger:
  15. if arg 1 is "add":
  16. if arg 2 is set:
  17. if {black.%arg 2%} is true:
  18. send "&c既に対象のプレイヤーはブラックリストに登録されています。"
  19. stop
  20. set {black.%arg 2%} to true
  21. broadcast "&d%arg 2%&cさんがOPリストのブラックリストに登録されました。"
  22. deop the arg 2
  23. stop
  24. if arg 1 is "remove":
  25. if arg 2 is set:
  26. if {black.%arg 2%} is not true:
  27. send "&c対象のプレイヤーはブラックリストに登録されていません。"
  28. stop
  29. set {black.%arg 2%} to false
  30. broadcast "&d%arg 2%&bさんがOPリストのブラックリストから登録解除されました。"
  31. deop the arg 2
  32. stop
Advertisement
Add Comment
Please, Sign In to add comment