Skip to content
home/templates/game lobby countdown
minigameIntermediatemc 1.20.x – 1.21.x36 lines

game lobby countdown

lobby auto-starts when 4+ players join. 30-sec countdown with bossbar + sound ticks. teleports everyone to game.

required addons — install before reloading
  • download skBeeAdds scoreboards, hologram text, and other things Skript can't do on its own.
Drop each .jar into your plugins/ folder, then restart your server.
lobby-countdown.sk36 lines
on join:
    if {lobby.active} is true:
        add player to {lobby.players::*}
        send "&aJoined lobby! (%size of {lobby.players::*}%/4)" to player
        if size of {lobby.players::*} >= 4:
            if {lobby.countdown} is not set:
                set {lobby.countdown} to 30 seconds from now
                broadcast "&aGame starts in 30 seconds!"

every second:
    if {lobby.countdown} is set:
        set {_remaining} to difference between now and {lobby.countdown}
        if {_remaining} <= 0 seconds:
            broadcast "&6&lGAME STARTING!"
            loop {lobby.players::*}:
                teleport loop-value to {game.spawn}
                play sound "ui.toast.challenge_complete" to loop-value
            delete {lobby.players::*}
            delete {lobby.countdown}
        else if {_remaining} <= 10 seconds:
            loop {lobby.players::*}:
                play sound "block.note_block.pling" to loop-value
                send "&e%{_remaining}%" to loop-value action bar

command /setgamespawn:
    permission: game.admin
    trigger:
        set {game.spawn} to location of player
        send "&aGame spawn set." to player

command /lobbytoggle:
    permission: game.admin
    trigger:
        set {lobby.active} to not ({lobby.active} ? false)
        send "&aLobby is now: &e%{lobby.active}%" to player

get it running

lobby-countdown.sk · 36 lines · needs skBee
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    lobby-countdown.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/lobby-countdown.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload lobby-countdown
that's it — your script is live. hop in-game to try it.
/ related templates

more minigame templates

comments