kjfalkeiae

TNTChecker

May 17th, 2019
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. on place:
  2. if event-block is a TNT:
  3. cancel event
  4. loop {notify::*}:
  5. send "&c[TNTChecker]&e%player%&bが&d%event-position%&eにTNTブロックを設置しました。" to loop-value
  6.  
  7. command /tntnotify [<text>]:
  8. trigger:
  9. if arg 1 is "yes" or "true" or "enable":
  10. if {notify::*} contains player:
  11. send "&cあなたはすでにTNT設置の通達を受け取るよう設定されています。"
  12. stop
  13. add player to {notify::*}
  14. send "&bTNT設置の通達を受け取るよう設定しました。"
  15. stop
  16. if arg 1 is "no" or "false" or "disable":
  17. if {notify::*} does not contain player:
  18. send "&cあなたはTNT設置の通達を受け取らないよう設定しています。"
  19. stop
  20. remove player from {notify::*}
  21. send "&bTNT設置の通達を受け取らないよう設定しました。"
  22. stop
  23. send "&c使用法:/tntnotify <yes(true,enable)|no(false,disable)>"
  24. send ""
  25. send "&bTNTが設置された際、通知を受け取るかどうかを設定します。"
  26. send "&eデフォルトは&b無効&eになっています。"
  27. stop
  28.  
  29. on explode:
  30. cancel event
  31. loop {notify::*}:
  32. send "&c[Explosion]&e%event-position%&bの爆発をキャンセルしました。" to loop-value
Advertisement
Add Comment
Please, Sign In to add comment