kazuken0814

Untitled

Sep 29th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. command /questionnaire <text>:
  2. usage: &6/&aquestionnaire &bアンケート内容
  3. permission: anke.sk
  4. trigger:
  5. if {cooltimee} is false:
  6. broadcast "&6%player%&aさんよりアンケート&b:&d%arg 1% , &6/yes か /no で答えてください。5分以内に答えてください。"
  7. set {cooltimee} to true
  8. loop all players:
  9. set {anke.%loop-player%} to true
  10. set {startanke} to true
  11. wait 300 second
  12. set {startanke} to false
  13. set {cooltimee} to false
  14. send "&cアンケート集計結果"
  15. send "&e題材:%arg 1%"
  16. send "&b yes : %{anke::yes}%"
  17. send "&c no : %{anke::no}%"
  18. delete {anke::*}
  19. if {cooltimee} is true:
  20. send "5分経たないと再度アンケート不可です。"
  21. command /yes:
  22. trigger:
  23. if {startanke} is true:
  24. if {anke.%player%} is false:
  25. send "&e2回投票はできません。"
  26. if {anke.%player%} is true:
  27. add 1 to {anke::yes}
  28. send "&eyesに投票しました。"
  29. if {startanke} is false:
  30. send "&bアンケートが開始されてません。"
  31. command /no:
  32. trigger:
  33. if {startanke} is true:
  34. if {anke.%player%} is false:
  35. send "&e2回投票はできません。"
  36. if {anke.%player%} is true:
  37. add 1 to {anke::no}
  38. send "&enoに投票しました。"
  39. if {startanke} is false:
  40. send "&bアンケートが開始されてません。"
Add Comment
Please, Sign In to add comment