Commands
On this page(8)
SnHub has three fixed roots. /spawn and /fly are the player commands. /snhub is the admin root, with /shub as its default alias. The aliases are read from command.aliases in config.yml and re-read on /snhub reload. A bare /snhub shows the generated help.
On top of those, SnHub registers optional roots when config.yml turns them on: the /build and /setspawn shortcuts and the game mode commands /gmc, /gms, /gma and /gmsp.
Player commands
| Command | Description |
|---|---|
/spawn | Teleports you to the hub spawn instantly, with no warmup. Needs snhub.spawn. |
/fly | Toggles your flight in the hub worlds. Needs snhub.fly. |
/fly <player> | Toggles another player's flight. Needs snhub.fly.others. |
Admin commands
| Command | Permission | Description |
|---|---|---|
/snhub setspawn | snhub.admin.setspawn | Sets the hub spawn to your position: world, coordinates, yaw and pitch. |
/snhub build [player] | snhub.admin.build | Toggles build mode for you or another player. |
/snhub open <menu> [player] | snhub.admin.open | Opens a menu for you or another player. |
/snhub network status | snhub.admin.network.status | Shows the network state, server id, LuckPerms sync, live hubs, last applied revision and how many LuckPerms changes are still unsent. |
/snhub network import | snhub.admin.network.import | Seeds the network with this hub's LuckPerms group memberships. |
/snhub network push | snhub.admin.network.push | Publishes this hub's shared configuration as a new revision. |
/snhub network pull | snhub.admin.network.pull | Applies the latest shared configuration revision now. |
/snhub modality list | snhub.admin.modality | Lists the modalities with their state and players. |
/snhub modality info <id> | snhub.admin.modality | Shows every setting of a modality. |
/snhub modality create <id> | snhub.admin.modality | Creates a modality from the template section of modalities.yml. |
/snhub modality remove <id> | snhub.admin.modality | Removes a modality and its hologram. |
/snhub modality set <id> <field> <value> | snhub.admin.modality | Sets name, color, versions, players, max-players, new-days, layout or npc. |
/snhub modality opening <id> <date|now|clear> | snhub.admin.modality | Sets the opening date, in the settings.date-format pattern. |
/snhub modality maintenance <id> <true|false> | snhub.admin.modality | Turns the maintenance layout on or off. |
/snhub modality hologram <id> <here|from|off> [name] | snhub.admin.modality | Places the card hologram at your position or where an existing hologram is, or hides it. |
/snhub modality glow <id> <true|false> [color] | snhub.admin.modality | Sets the glow of the modality's NPC. |
/snhub modality particles <id> <effect> [particle] [#RRGGBB] | snhub.admin.modality | Sets the particles around the modality's NPC. none turns them off. |
/snhub reload | snhub.admin.reload | Reloads the configuration, lang, menus and items. |
/snhub debug | snhub.admin.debug | Toggles the runtime debug output. |
/snhub help | snhub.admin | Shows the paginated help. |
/build [player] | snhub.admin.build | Shortcut of /snhub build. Toggle: command.shortcuts.build. |
/setspawn | snhub.admin.setspawn | Shortcut of /snhub setspawn. Toggle: command.shortcuts.setspawn. |
/gmc [player] | snhub.gamemode.creative | Switches to creative. Toggle: command.gamemode. |
/gms [player] | snhub.gamemode.survival | Switches to survival. |
/gma [player] | snhub.gamemode.adventure | Switches to adventure. |
/gmsp [player] | snhub.gamemode.spectator | Switches to spectator. |
reload, help and debug are provided by SnLib. SnLib also adds them under /spawn and /fly, behind their own admin permissions.
Fly
/fly works in NORMAL mode, survival or adventure, in a hub world. Flight ends when the player enters PvP or build mode or leaves the hub worlds, and it is not kept across a rejoin. A flying player has no double jump; turning flight off gives it back. With fly.enabled: false every flight ends and /fly answers that flying is not available. SnHub claims its commands: if another plugin also registers /fly, SnHub's /fly is the one players reach.
Build mode
/snhub build [player] toggles a bypass for admins. The block, inventory, drop and pickup protections stop applying to them. Their hub items are removed and their game mode becomes build-mode.gamemode.
Turning build mode off, or quitting, restores the previous game mode and gives the hub items back. The console must name a player.
Shortcuts and game modes
The game mode commands are for hubs that run without Essentials. Each mode has its own node, and naming another player also needs snhub.gamemode.others. A player in PvP mode is refused until they leave it, and only survival and adventure players can enter PvP mode. A game mode set during build mode lasts until build mode ends, which restores the game mode the player had before it.
SnHub claims these command names from other plugins. To let another plugin keep one, turn it off with command.shortcuts.build, command.shortcuts.setspawn or command.gamemode. These toggles are read on startup, so restart the server after changing them.
Opening menus
/snhub open <menu> [player] tab completes the menu ids found in guis/. NPC plugins can run /snhub open <menu> {player} from the console. A successful open is silent for the console and for a sender who opens a menu for themselves. Only an admin who opens a menu for another player gets a confirmation. The menu ids that ship are selector and hubs.
Modality commands
A modality is one entry of modalities.yml. Create it, place its hologram and link its NPC:
/snhub modality create gens
/snhub modality set gens color #FFFF23
/snhub modality set gens players %snplayercount_gens%
/snhub modality set gens max-players 450
/snhub modality hologram gens here
/snhub modality set gens npc Gens
/snhub modality glow gens true yellow
/snhub modality particles gens ring
/snhub modality opening gens 11/09/2026 21:00Every edit applies at once. hologram <id> from <name> copies the position of one of your existing holograms, so a preset can replace a hand-made card exactly. Remove the old hologram afterwards so the two do not overlap. With network.shared-config.auto-push on, each edit also reaches the other hubs. Without it, the command reminds you to run /snhub network push.
The glow colors are the named colors: yellow, aqua, light_purple, gold and the rest. The effects are none, ring, halo, helix, orbit and aura.
Network commands
The network commands need the multi-hub network to be active. See Configuration for the network section. While it is off, every network subcommand except status answers that the module is off. status always answers, and it tells you why the network is inactive.
/snhub network is a group. SnLib checks every permission node on the path, so each subcommand needs its own node and the group node snhub.admin.network.
importadds this hub's memberships of the synced groups to the network database. It is additive only: it adds missing rows and extends temporary ones. A membership another hub removed stays removed.pushpublishesitems.yml,modalities.yml,guis/,lang/, the spawn andconfig.ymlwithout itsdatabaseandnetworksections. With the display sync on, it also carries the NPC and hologram files.pullbacks up the files it replaces underplugins/SnHub/backups/, writes the new files and reloads.
With network.shared-config.auto-push: true on a hub, /snhub reload there runs the push for you whenever the shared content changed. See Configuration and the FAQ.
/snhub network pull replaces your local items.yml, modalities.yml, menus, lang files, spawn and config.yml, apart from the database and network sections. With the display sync on, it also replaces and removes NPCs and holograms. Each pull that replaces files first saves a backup, and the newest network.shared-config.backups-kept backups are kept. Files deleted on the pushing hub are not deleted on the others.