Advertisement
okaz_

Untitled

Dec 5th, 2019
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. command /join:
  2. trigger:
  3. send "&a[&cDorokei&a] &aゲームに参加しました。"
  4. command "/scoreboard players tag @p add join"
  5.  
  6. command /quit:
  7. trigger:
  8. send "&a[&cDorokei&a] &aゲームから退出しました。"
  9. command "/scoreboard players tag @p remove join"
  10.  
  11. on right click: #右クリックしたとき
  12. if name of player's hold item is "&6Join": #手に持っているアイテムの名前が"&6Join"で(分岐)
  13. if {join.%player%} is false: #{join.%player%}という変数がfalseの時(分岐)
  14. command "/scoreboard players tag @p add join" #コマンドを実行
  15. send "&a[&cDorokei&a] &aゲームに参加しました。" #メッセージを送信
  16. set {join.%player%} to true #{join.%player%}という変数をtrueにする
  17. stop #終わる
  18. if {join.%player%} is true: #こんな感じで分岐を使ってSPAM回避できるかも…?
  19. send "&a[&cDorokei&a] &a既にゲームに参加しています。" # これは適当に作ったので対策ができてるかはわかりません!
  20. stop #連打はできるのでサバに負担がかかるのは変わらない(と思う)
  21. if name of player's hold item is "&6Quit":
  22. if {join.%player%} is true:
  23. send "&a[&cDorokei&a] &aゲームから退出しました。"
  24. command "/scoreboard players tag @p remove join"
  25. stop
  26. if {join.%player%} is false:
  27. send "&a[&cDorokei&a] ゲームに参加していません。"
  28. stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement