Commands
On this page(5)
SnHub has two roots. /spawn is the only player command. /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.
Player commands
| Command | Description |
|---|---|
/spawn | Teleports you to the hub spawn instantly, with no warmup. Needs snhub.spawn. |
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 and last applied revision. |
/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 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. |
reload, help and debug are provided by SnLib. SnLib also adds them under /spawn, behind their own admin permissions.
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.
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.
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,guis/,lang/, the spawn andconfig.ymlwithout itsdatabaseandnetworksections.pullbacks up the files it replaces underplugins/SnHub/backups/, writes the new files and reloads.
/snhub network pull replaces your local items.yml, menus, lang files, spawn and config.yml, apart from the database and network sections. 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.