Skip to content
home/templates/hub / server selector gui
guiIntermediatenewmc 1.20.x – 1.21.x25 lines

hub / server selector gui

right-click a compass to open a server selector. each slot teleports to a configured warp.

vanilla Skriptno addons required.
hub-selector.sk25 lines
on join:
    give 1 compass named "&aServer Selector" with lore "&7Right-click to open" to player

on right click holding compass:
    if name of player's tool is "&aServer Selector":
        cancel event
        set {_gui} to chest inventory with 1 row named "&aPick a Server"
        set slot 1 of {_gui} to grass block named "&aSurvival" with lore "&7Click to join"
        set slot 3 of {_gui} to diamond sword named "&cPvP" with lore "&7Click to join"
        set slot 5 of {_gui} to emerald named "&bCreative" with lore "&7Click to join"
        set slot 7 of {_gui} to chest named "&eMinigames" with lore "&7Click to join"
        open {_gui} to player

on inventory click:
    if name of event-inventory is "&aPick a Server":
        cancel event
        if event-slot is grass block:
            execute player command "/server survival"
        if event-slot is diamond sword:
            execute player command "/server pvp"
        if event-slot is emerald:
            execute player command "/server creative"
        if event-slot is chest:
            execute player command "/server minigames"

get it running

hub-selector.sk · 25 lines · vanilla Skript
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    hub-selector.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/hub-selector.sk
  3. 3

    reload in-game

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

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

more gui templates

comments