Advertisement
taiyaki

Untitled

Dec 9th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.66 KB | None | 0 0
  1.  
  2. command /admd <text> <number>:
  3. permission: admin.d
  4. trigger:
  5. if arg-1 is "start":
  6. clear {admin.d.p::*}
  7. clear {admin.d::*}
  8. set {admin.d.num} to arg-2
  9. set {admin.d.st} to "start"
  10. broadcast "&e[&6&ladminD&e] &a%player% &eさんが &d%arg-2%Dをスタートしました!"
  11. broadcast "&e[&6&ladminD&e] &e/d <数字> &bで予想しよう!"
  12. if arg-1 is "stop":
  13. set {admin.d.st} to "end"
  14. broadcast "&e[&6&ladminD&e] &a抽選開始"
  15. while true:
  16. set {tyuusen} to a random integer between 1 and {admin.d.num}
  17. wait a tick
  18. if {admin.d::%{tyuusen}%} is set:
  19. broadcast "&e[&6&ladminD&e] &d&l%{admin.d::%{tyuusen}%}% さん"
  20. stop
  21.  
  22.  
  23.  
  24. command /d <number>:
  25. trigger:
  26. if {admin.d.p::%player%} is set:
  27. stop
  28. if {admin.d.st} is "start":
  29. if arg-1 > {admin.d.num}:
  30. send "&c数値がおかしいです"
  31. stop
  32. if arg-1 <= {admin.d.num}:
  33. if arg-1 < 1:
  34. send "&c数値がおかしいです"
  35. stop
  36. if {admin.d::%arg-1%} is set:
  37. send "&c他の人とかぶっています。"
  38. send "&cもう一度!"
  39. stop
  40. if {admin.d::%arg-1%} is not set:
  41. send "&e[&6&ladminD&e] &a%arg-1% 番を予想しました"
  42. set {admin.d::%arg-1%} to player
  43. set {admin.d.p::%player%} to "yosou"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement