Advertisement
Blue_Tec

Untitled

Mar 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. command /gift [<text>]:
  2. trigger:
  3. if arg-1 is not set:
  4. message "&aここから&6&lGIFT CORD&aを取得します! &dgift.swordcraftonline.cf"
  5. message "&b/gift <cord>"
  6. if arg-1 is set:
  7. if {gift.time.%player%} is more than 1:
  8. message "&cあなたは取得済み!%{gift.time.%player%}%秒後にもらえます。"
  9. else:
  10. if {gift.cord} is arg-1:
  11. message "&a取得しました!"
  12. add 1800 to {gift.time.%player%}
  13. else:
  14. message "&c無効"
  15.  
  16. command /setgift [<text>]:
  17. permission: setgift.admin
  18. permission message: &cYou do not have permission!
  19. trigger:
  20. if arg-1 is not set:
  21. message "&c/setgift <cord>"
  22. if arg-1 is set:
  23. message "&a変更完了!"
  24. set {gift.cord} to arg-1
  25.  
  26. every 1 second:
  27. loop all players:
  28. if {gift.time.%loop-player%} is more than 0:
  29. remove 1 from {gift.time.%loop-player%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement