FAQ
On this page(44)
How do I update SnHub?
Download the newer snhub-v* release and replace the jar. Configs auto-merge on restart.
Does it support Folia?
No, SnHub is not Folia-compatible. It runs on Paper 1.20.x and 1.21.x.
Why does the plugin not appear in /plugins?
Two usual causes. Either SnLib.jar is missing from plugins/, or the key in plugins/.Sn-License/license.yml is still the placeholder. A key that fails the online check has the same effect. The server log then shows [Sn] License: FAIL. See Installation.
Can I run SnHub next to SnJoinItem?
No. SnHub replaces SnJoinItem on hub servers. Both pin hotbar slots and would fight over the same items.
Do I need PlaceholderAPI or LuckPerms?
No. Nothing needs either of them to run. PlaceholderAPI adds the %snhub_*% placeholders. LuckPerms is only used by the multi-hub group sync.
Do I need a proxy plugin?
No. SnHub is backend-only. You need a Velocity or BungeeCord proxy for the server selector, the live player counts and the network. On Velocity, set bungee-plugin-message-channel = true, which is the default.
How do I set the spawn?
Stand where players should arrive and run /snhub setspawn. Until you do, players go to the hub world spawn, and an admin is told how to set it.
Why does every player land on the spawn when they join?
By design. With spawn.teleport-on-join on, SnHub sends every player to the spawn, not to their last location. Turn it off to keep last locations.
How do I add a button to the server selector?
Add a template to guis/selector.yml, then add one more b to its button row in layout. The button runs [connect] <server>, where <server> is the server name in your proxy config. Keep the row symmetric, then run /snhub reload.
How do I show live player counts in a menu?
Write {count_<server>} or {count_total} in a button name or lore. List the server in servers.list of config.yml, spelled as in your proxy config. You do not need PlaceholderAPI for this.
How do I add my own hotbar item?
Add a block to items.yml, using the SnLib item spec. Copy the rules example and change the id. Then add an entry for it under hotbar.layout in config.yml with a slot from 0 to 8. Then run /snhub reload.
Will SnHub delete the items my players carry?
Only on join, and only while join.clear-inventory or hotbar.clear-on-apply is true. Entering a hub world, respawning and leaving PvP or build mode only replace the hub items. When a full inventory keeps a hub item out of its slot, the player is told and gets the item as soon as a slot is free; the item that held the slot is moved, never removed.
How do I make a hotbar item VIP only?
Write a node in the permission field of its entry under hotbar.layout. Only players with that node receive the item.
How do I add another menu?
Drop another file into guis/. Open it with [open] <menu> in an item action, or with /snhub open <menu> [player].
How do I open a menu from an NPC?
Run /snhub open <menu> {player} from the console in your NPC plugin. A successful open is silent in the console.
Why can I not break or place blocks in the hub?
The hub protections are on by default in the hub worlds. Run /snhub build to bypass them, or switch off a single rule under protection in config.yml.
Which worlds count as the hub?
The ones listed under worlds in config.yml. An empty list makes every world a hub world.
How does PvP mode work?
Hold the PvP sword slot. After the countdown you get the PvP armor and sword, and you can fight other PvP-mode players only. Select another slot to leave. It needs snhub.pvp.
What is the difference between the legacy and modern combat style?
legacy gives 1.8 combat to PvP-mode players only, with no attack cooldown and no sweep attack. modern keeps the vanilla 1.9+ cooldown and sweep.
Why do the Ender Butt and the Bow Teleport not work in PvP mode?
pvp.disable-game-items is on by default. Both items are also off in build mode.
Do hidden players stay in the TAB list?
On Paper 1.20.5 and newer, yes. On Paper 1.20.0 to 1.20.4 they also leave TAB, and SnHub logs one warning. Two players that are both in PvP mode always see each other.
Why does the double jump not work?
You need snhub.doublejump, a hub world, and normal mode, which excludes PvP mode and build mode. You also need survival or adventure. A player another plugin lets fly is left alone.
Why does a launch pad not launch me?
You need snhub.launchpad and a hub world. The plate must match launch-pads.plate. When launch-pads.block-below is set, the plate must also stand on that block.
How do I set up the multi-hub network?
Set database.type: mysql on every hub, pointing at the same database. Then set network.enabled: true and restart. With SQLite or network.enabled: false, every local feature works and the network commands answer that the module is off. If the database cannot be reached, the hub keeps working, reports the network as down and retries on its own, waiting longer each time up to network.retry-max-seconds.
How do I set the server id of a hub?
Set network.server-id to the hub's server name in your proxy config. The default auto asks the proxy on the first join. A configured id that differs from the proxy name logs a warning. network.enabled and network.server-id apply after a restart.
What does the LuckPerms group sync cover?
Only context-free group memberships of the groups in network.luckperms.groups, including temporary groups and their expiry. It never syncs permission nodes, meta, prefixes or group definitions. The group default never syncs, and the last write wins. A change a hub applied from the network is never echoed back, while a change made on the hub right after it, even to the same player and group, still syncs.
What happens to LuckPerms changes while the network database is down?
They are kept in plugins/SnHub/lp-outbox.db until the database confirms them. They survive a database outage, a restart and a reload that turns the sync off, and are resent on their own with a growing delay. A kept change never overwrites a newer change another hub wrote. /snhub network status shows how many are waiting.
Should I enable the LuckPerms group sync if my servers share one LuckPerms database?
No. Keep network.luckperms.enabled: false in that case.
What does /snhub network push publish?
items.yml, guis/, lang/, the spawn and config.yml without its database and network sections. Other hubs apply the revision automatically with network.shared-config.auto-pull, or on /snhub network pull.
Can a hub sync its config on /snhub reload without a manual push?
Yes. Set network.shared-config.auto-push: true on each hub. Editing a file on any hub and running /snhub reload there then publishes it, and the other hubs apply it and reload on their own. A reload that changed nothing publishes nothing, and the reload a pull triggers never publishes back. If another hub published a newer revision this hub has not applied yet, nothing is sent and the admins are asked to pull first. Admins online with snhub.admin.network see the result on both hubs. Edit one hub at a time: two hubs reloaded within the same poll interval both publish, and the later revision wins.
How do I show a countdown until a modality opens?
Run /snhub modality opening <id> <date> with the date in settings.date-format of modalities.yml (default dd/MM/yyyy HH:mm, in settings.time-zone). The card shows the coming-soon layout with the countdown and switches to the open layout by itself at that minute. opening <id> clear removes the date.
Can SnHub keep my NPCs and holograms the same on every hub?
Yes. Set network.shared-config.engines.enabled: true on every hub. SnNPCs and SnHolograms files then travel with the shared configuration, and each hub reloads that plugin after a pull. The hub that pushes decides: an NPC or hologram it does not have is removed from the others. List per-hub objects, such as a lobby number hologram, in engines.local-only. A hub with an engine off, missing or empty never wipes the others. Edits travel on /snhub reload with auto-push, or on /snhub network push.
Why does the glow of my NPC come back after I change it with SnNPCs?
A modality with npc.glow set owns that glow: SnHub applies it again on reload. Change it with /snhub modality glow, or remove the glow key from the modality to manage the glow yourself.
How many languages does SnHub include?
One: English. The lang key in config.yml loads lang/messages_<code>.yml and falls back to English. Every message is in that file.
Known limitations
How does the hub learn its id with network.server-id: auto?
The id comes from the proxy's GetServer reply, which arrives after the first player joins. Until then the id is unknown, and push and import answer that. Set network.server-id explicitly on each hub to skip auto-detection.
Why did an older LuckPerms change win over a newer one?
The last write wins by each hub's own clock. Keep the clocks of your hubs in sync (NTP).
Why are the hub game rules still off after I removed SnHub?
SnHub switches doDaylightCycle, doWeatherCycle and doMobSpawning off in hub worlds. It does not restore them after a restart or removal. Run /gamerule to restore them.
Why do hidden players also leave the TAB list on my server?
On Paper 1.20.0 to 1.20.4 the TAB packet layer is a clean no-op, so hidden players also leave TAB. SnHub logs one console warning.
Why does a 1.4 hub skip the revisions of a 1.5 hub?
From 1.5.0 the shared configuration carries modalities.yml and the NPC and hologram files, which an older hub does not accept. Update every hub before the next push.
Why is my modality card tighter than I want?
Give the layout its own line heights with line-heights, for example line-heights: [0.3, 0.3, 0.4, 0.4, 0.3], and run /snhub reload. A server that created modalities.yml before 1.5.2 does not get the key on its own, because the layouts section is yours. Only SnHolograms places each line on its own.
Do the modality cards survive a SnHolograms reload?
Yes. The cards are runtime holograms: /snholograms reload does not touch them, and they are never saved to the SnHolograms files, so there is nothing to clean up by hand.
What changes when I update from SnHub 1.x to 2.0?
SnHub 2.0 drives SnNPCs and SnHolograms instead of FancyNpcs, DecentHolograms and FancyHolograms. Your server still starts without any change: a hologram-engine that names an old plugin falls back to auto with one warning, the old engines keys are ignored, and the NPC and hologram files of the old plugins inside an existing shared revision are skipped. SnHub does not convert those files. Recreate your NPCs in SnNPCs under the names your modalities use in npc.name, and your holograms in SnHolograms. Install SnNPCs 1.2.0 or newer for the glow and particles. Update every hub together: a 1.x hub skips the revisions of a 2.0 hub.
How do I open a menu by clicking a SnNPCs NPC?
Add the click action [console] snhub open <menu> {player} to the NPC. Adding a [console] action in game needs the permission snnpcs.admin.action.elevated.