Advertisement
Guest User

Untitled

a guest
Mar 28th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. command /giveaway [<Text>] [<Text>]:
  2. trigger:
  3. if arg 1 is "join":
  4. if "%{giveaway::list::*}%" doesn't contain "%player%":
  5. add player to {giveaway::list::*}
  6. broadcast "&b[Giveaway] &f%player% entered the giveaway!"
  7. stop
  8. else:
  9. send "&b[Giveaway]&r You're already entered in the giveaway!"
  10. stop
  11. if arg 1 is "end":
  12. permission: op
  13. broadcast "&b[Giveaway]&r Giveaway ended, winner announcing shortly!"
  14. wait 100 ticks
  15. set {_result} to random player out of {giveaway::list::*}
  16. broadcast "&b[Giveaway] &f%{_result}% won the giveaway!"
  17. execute console command "/sudo * giveaway leave"
  18. stop
  19. if arg 1 is "leave":
  20. remove player from {giveaway::list::*}
  21. stop
  22. if arg 1 is "start":
  23. permission: op
  24. set {prize} to arg 2
  25. broadcast "&b[Giveaway]&r Do /giveaway join for a chance to win &b%{prize}%&r!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement