Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /settimer:
- permission: op
- trigger:
- open virtual chest with 1 row named "&6Set timer" to player
- format gui slot 1 of player with light green wool named "&a10 seconds" to run:
- set {timer} to 10
- send "&7The countdown timer has been set to the &a10 seconds &7option."
- play sound "ui.button.click" at player
- format gui slot 3 of player with green wool named "&25 seconds" to run:
- set {timer} to 5
- send "&7The countdown timer has been set to the &25 seconds &7option."
- play sound "ui.button.click" at player
- format gui slot 5 of player with orange wool named "&63 seconds" to run:
- set {timer} to 3
- send "&7The countdown timer has been set to the &63 seconds &7option."
- play sound "ui.button.click" at player
- format gui slot 7 of player with red wool named "&41 second" to run:
- set {timer} to 1
- send "&7The countdown timer has been set to the &41 second &7option."
- play sound "ui.button.click" at player
- command /timer:
- trigger:
- if {timer} is not set:
- send "&cTimer is not set! set it using the /settimer command."
- if {timer} is 10:
- show an action bar from "&8Game begins in 10" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 9" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 8" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 7" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 6" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 5" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 4" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 3" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 2" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 1" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&6The game has begun!" to player
- play sound "block.glass.break" at player
- stop
- else if {timer} is 5:
- show an action bar from "&8Game begins in 5" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 4" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 3" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 2" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 1" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&6The game has begun!" to player
- play sound "block.glass.break" at player
- stop
- else if {timer} is 3:
- show an action bar from "&8Game begins in 3" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 2" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&8Game begins in 1" to player
- play sound "block.glass.break" at player
- wait 1 second
- show an action bar from "&6The game has begun!" to player
- wait 1 second
- play sound "block.glass.break" at player
- stop
- else if {timer} is 1:
- show an action bar from "&8Game begins in 1" to player
- play sound "block.glass.break" at player
- wait 1 seconds
- show an action bar from "&6The game has begun!" to player
- play sound "block.glass.break" at player
- stop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement