Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- options:
- prefix: &8[&CGive&2Away&8]
- command /giveaway:
- permission: staff.admin
- trigger:
- open chest with 1 rows named "@prefix" to player
- format slot 0 of player with book named "&6Coins" with lore "Give coins to the winner" to close then run [execute player command "/giveawayCoins"]
- format slot 1 of player with book named "&bXP" with lore "Give XP to the winner" to close then run [execute player command "giveawayXP"]
- format slot 2 of player with glowing book named "&c&lComing soon" to be unstealable
- command /giveawayCoins:
- permission: staff.admin
- trigger:
- broadcast "@prefix &5is being chosen in 60 seconds! "
- wait 30 seconds
- broadcast "@prefix &5is being chosen in 30 seconds!"
- wait 20 seconds
- broadcast "@prefix &5is being chosen in 10 seconds!"
- wait 5 seconds
- broadcast "@prefix is being chosen in 5 seconds!"
- wait 1 second
- broadcast "@prefix is being chosen in 4 seconds!"
- wait 1 second
- broadcast "@prefix is being chosen in 3 seconds!"
- wait 1 second
- broadcast "@prefix is being chosen in 2 seconds!"
- wait 1 second
- broadcast "@prefix is being chosen in 1 second!"
- wait 1 second
- set {_giveawayCoins} to a random integer between 50 and 500
- set {_giveaway} to random player out of all players
- wait 1 second
- broadcast "@prefix &d%{_giveaway}% &5has won the &cGive&2Away &5 and has received &6c{_giveawayCoins} &6coins!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement