Advertisement
maozou

vote

Dec 8th, 2018
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. command /vote <text>:
  2. trigger:
  3. if arg-1 is "yes" or "no" or "help":
  4. if arg-1 is "yes":
  5. if {voted::%player%} is "0":
  6. add 1 to {vote.votey}
  7. set {voted::%player%} to "1"
  8. send "&aYes&7に投票しました。"
  9. else:
  10. send "&cあなたはすでに投票しているため投票できません。"
  11. if arg-1 is "no":
  12. if {voted::%player%} is "0":
  13. add 1 to {vote.voteno}
  14. set {voted::%player%} to "1"
  15. send "&cNo&7に投票しました。"
  16. else:
  17. send "&cあなたはすでに投票しているため投票できません。"
  18. if arg-1 is "help":
  19. send "&a---=Vote=---"
  20. send "&7/vote yes Yesに投票。"
  21. send "&7/vote no Noに投票。"
  22. command /votereset:
  23. permission:sk.vote
  24. trigger:
  25. set {vote.votey} to "0"
  26. set {vote.voten} to "0"
  27. loop all players:
  28. set {voted::%loop-player%} to "0"
  29. send "&7vote reseted"
  30. command /votecheck:
  31. permission:sk.vote
  32. trigger:
  33. send "&aYes: &b%{vote.votey}%"
  34. send "&cNo: &b%{vote::voten}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement