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
copy or download
grab the .sk file with the buttons up top.
hub-selector.sk· ready to drop in - 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
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
gui
basic shop gui
no-addon chest gui with 3 buyable items. player click → message + give item. items are locked.
guipaginated chest gui menu
gui helper for browsing a long list across multiple pages. hard-coded item list + auto-generated next/prev/close navigation row.
guiplayer trade gui (/trade)
two-player trade with confirm/ready flow. each player adds items to their side; both must accept before the trade completes.