Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /questionnaire <text>:
- usage: &6/&aquestionnaire &bアンケート内容
- permission: anke.sk
- trigger:
- if {cooltimee} is false:
- broadcast "&6%player%&aさんよりアンケート&b:&d%arg 1% , &6/yes か /no で答えてください。5分以内に答えてください。"
- set {cooltimee} to true
- loop all players:
- set {anke.%loop-player%} to true
- set {startanke} to true
- wait 300 second
- set {startanke} to false
- set {cooltimee} to false
- send "&cアンケート集計結果"
- send "&e題材:%arg 1%"
- send "&b yes : %{anke::yes}%"
- send "&c no : %{anke::no}%"
- delete {anke::*}
- if {cooltimee} is true:
- send "5分経たないと再度アンケート不可です。"
- command /yes:
- trigger:
- if {startanke} is true:
- if {anke.%player%} is false:
- send "&e2回投票はできません。"
- if {anke.%player%} is true:
- add 1 to {anke::yes}
- send "&eyesに投票しました。"
- if {startanke} is false:
- send "&bアンケートが開始されてません。"
- command /no:
- trigger:
- if {startanke} is true:
- if {anke.%player%} is false:
- send "&e2回投票はできません。"
- if {anke.%player%} is true:
- add 1 to {anke::no}
- send "&enoに投票しました。"
- if {startanke} is false:
- send "&bアンケートが開始されてません。"
Add Comment
Please, Sign In to add comment