Server setup

Plugin installation & commands

Paper, Fabric and Forge builds, config options and commands.

Pick the right build

Server typeFolderNotes
Paper or Spigotplugins/Plugin build.
Fabricmods/Also install Fabric API.
Forgemods/Server-side only; players don’t need it.

Builds are on the Download page and on each server’s Plugin tab. Match the Minecraft version your server runs.

Connect it

The quickest way: open your server in the dashboard, go to the Plugin tab and download the build there. It has your Server ID and key built in, so install it, restart the server and it connects by itself.

Using a build from the Download page, or replacing an older LinkNSync JAR that already wrote a config file? Connect it with the register command instead:

  1. Restart the server after installing so LinkNSync creates its config file.
  2. Open your server in the dashboard and go to the Plugin tab.
  3. Copy the register command and run it in the server console:
/linknsync register <server id> <server key>

Either way, the plugin registers with LinkNSync and starts sending heartbeats. The dashboard shows the server as Online once the first one arrives.

The server key works like a password for your server, and the Plugin tab download contains it. Don’t share the file, the key or the register command, or show them on stream. Use the console rather than in-game chat: Paper and Spigot write player commands to the server log, key included. If it leaks, rotate it from the server’s Danger zone tab, then download the plugin again or run the new command.

Commands

CommandWhat it does
/linknsync register <id> <key>Saves the credentials and connects the server.
/linknsync statusShows the LinkNSync address, Server ID, whether a key is set, whether the server is registered, and whether access is enforced.
/linknsync check [player]Asks LinkNSync whether a player (or you) would be allowed in.
/linknsync reloadReloads the config file after you edit it. If the file has an error, it says so and keeps the settings it already had.

On Paper, commands need the linknsync.admin permission (operators have it). On Fabric and Forge they need operator permission level 2.

Config file

Paper keeps it at plugins/LinkNSync/config.yml; Fabric and Forge use config/linknsync.json. A Plugin tab download fills in the address, ID and key when the file is first created; otherwise the register command fills in the ID and key. Values already in the file always win.

SettingDefaultMeaning
api-base-url—The LinkNSync address, without a trailing slash: https://v2.linknsync.live
public-id—Your Server ID.
server-api-key—Your private server key.
heartbeat-interval-seconds60How often the server checks in and reports who’s online.
enforce-accesstrueTurn players away when they don’t have access. Set to false to only log checks while testing.
allow-on-api-errorfalseIf LinkNSync can’t be reached, let players in anyway instead of refusing them.
deny-message—Fallback kick message, used only if LinkNSync doesn’t send one.
On Paper, players with the linknsync.bypass permission skip the join check. It’s off for everyone by default.

Bans and rechecks

Bans you make with the normal Minecraft ban commands sync to your dashboard. When you pardon someone or accept their appeal in the dashboard, the plugin applies the pardon in-game within seconds, or on its next heartbeat if its live connection is down. When you change groups, roles or blocks, the plugin rechecks the players who are online just as quickly.