Skip to content
NP Editor Docs
This is not the latest version — view the latest

Installing NPBridge (server admins)

NPBridge is the server plugin that lets NP Editor talk to a running Minecraft server (Paper). The editor’s Server connection (live), map install and the scene runtime (NP Scene), and “Advanced” deployment all go through this plugin. The NP Editor 0.10.2 installer includes NPBridge 2.0.8. This page is the install and security guide for the person who runs the server. Everything here happens in the server console and in files, so there are no images.

New in 0.10.2: logic that contains the new Logic graph flow nodes is uploaded only to servers running NPBridge 2.0.8 or later. Details are in New nodes and 2.0.8.

WhatDetails
ServerPaper 1.21 or later (built against 1.21.11), Java 21
Other pluginsNone needed. The single NPBridge jar contains map install and the scene runtime (NP Scene).
File%LOCALAPPDATA%\Programs\NP Editor\server\NPBridge.jar on the PC where the editor is installed
PermissionsYou need to be able to put files in the server’s plugins/ folder and run commands from the server console or as op.
NetworkThe PCs that run the editor must reach the NPBridge port (default 25590, TCP).
  1. On the PC where the editor is installed, type %LOCALAPPDATA%\Programs\NP Editor\server in the File Explorer address bar to find NPBridge.jar.
  2. Stop the Minecraft server.
  3. Copy NPBridge.jar to the server’s plugins/ folder.
  4. Start the server. When the server log shows the line [NPBridge] listening on 0.0.0.0:25590 (any address - keep the token secret), NPBridge is open. On first start, plugins/NPBridge/config.yml and a token are created, and the log shows generated a new token - /npbridge token to see it.
  5. Type /npbridge status in the server console or in game (as op). The version and address appear, as in “[NPBridge] 2.0.8 · 0.0.0.0:25590 · …”.
  6. Set up the firewall and allow_ips first, as described in Restricting access.
  7. In game, as op, type /npbridge token. The token appears as “[NPBridge] token: npb_…”. Hand this token directly to the people who will use the editor.
  8. On the editor side, connect as described in Server connection (live). The address is http://<server address>:25590, and the token is the value from step 7.
Current versionWhat to do
NPBridge 2.0.0 – 2.0.7Stop the server, remove the old NPBridge jar from plugins/, add the new NPBridge.jar and start the server. Settings, token, port and scenes stay as they are, and nothing in the config file needs changing. To swap it while the server is running, put the new jar in plugins/update/ and restart.
NPBridge 1.x · separately installed NP SceneStop the server, remove both the old NPBridge-1.x.jar and NPScene-*.jar, add the new jar and start the server. On first start, plugins/NPScene/ is copied to plugins/NPBridge/scene/ (the original is kept) and the old settings move to the scene: section of config.yml.
  • After the swap, check with /npbridge status that the version is 2.0.8.
  • If an old NPScene-*.jar is still present, NPBridge does not turn on its scene features, so that the same scene does not run twice, and writes a large warning (SEVERE) to the server log.
  • A server upgraded from 1.x keeps the old value port: 25580 in config.yml (an existing config file is not overwritten). 25580 · 25581 are the ports the Noplatea resource pack server uses, so change it by hand if they clash.

The 0.10.2 Logic graph adds five flow-control nodes (Gate gate · Return stop · Do Once do_once · Flip Flop flip_flop · Switch switch) and the math functions inverse_lerp · wrap · snap. These nodes run on the server from NPBridge 2.0.8.

  • Servers on 2.0.7 or earlier skip actions they don’t know and run the next actions as usual. Actions such as rewards guarded by a Gate would be unlocked.
  • So the 0.10.2 editor neither uploads through the live link nor deploys as a scene any logic that contains these nodes to servers older than 2.0.8 (or servers that don’t report their version), and tells you why. Other live features (blocks, entities, saving) keep working.
  • Exporting to a file is not blocked; you only get a warning. The exported rules record the minimum server version (min_bridge) and a list of “stop if unknown” actions (stop_unknown). 2.0.8 skips any rule that requires a newer version than itself, and stops at that point when it doesn’t know an action in stop_unknown.
  • Several servers on one machine: give each server its own NPBridge port too (for example 25590 for production · 25591 for testing). After changing the port, type /npbridge reload, and change the port in the editor’s connection address as well.
  • Using it without opening a port: set bind in config.yml to 127.0.0.1, and open a tunnel on the editor PC with ssh -L 25590:127.0.0.1:25590 <account>@<server>. The editor address is http://127.0.0.1:25590. This suits connections whose IP changes often.
  • Checking server load while connected: type /npbridge sessions to see the live connection list (client · PC name · IP · last request · range received) and the tick average · maximum time. While no editor is editing, NPBridge uses almost no server tick time.
  • If every editor is on 0.9.20 or later, change to security.require_signed: true so the token never travels in plain text (Request signing).

NPBridge opens one HTTP port, separate from the Minecraft port.

WhatDefaultSetting
NPBridge HTTP (where the editor connects)25590port · bind in config.yml
Minecraft server25565 etc.server.properties — unrelated to NPBridge. You can also install it on a Paper server behind a proxy (Velocity etc.).
Editor Test server (this PC)…Game 25570 · NPBridge 25592A test server the editor starts on this PC only.
  • If the port cannot be opened, the plugin stays enabled but does not open HTTP, and writes “NPBridge HTTP 를 열지 못했어요 — …” (“Couldn’t open NPBridge HTTP — …”) and how to fix it to the server log.

The token is the secret key the editor uses to connect to NPBridge. Anyone who knows the token can change the server world’s blocks, container contents, sign text and scenes.

CommandAction
/npbridge tokenShow the current token
/npbridge token regenCreate a new token. Every editor that was connected must update its token too.
  • On first start, the token is created as a random value (32 bytes) starting with npb_. Do not edit token in config.yml by hand.
  • Typing /npbridge token in the console also writes it to the server log file. View it in game as op when you can.
  • Do not share the token in chat, screenshots or public channels. If it may have leaked (if a plain HTTP port was ever open to the internet), change it with /npbridge token regen.
  • The editor stores the connection settings only when you click Save, in the user folder on the editor PC with Windows data protection (only that user on that PC can read them).

NPBridge HTTP is plain text. Editors 0.9.20 and later do not send the token; they add a signature (HMAC-SHA256) to every request instead.

SettingDefaultMeaning
security.require_signedfalsefalse = check a signature when there is one, and also accept the old way (token as is) when there is none. true = accept signed requests only.
security.max_skew_seconds60Allowed clock difference for signatures (seconds). If the editor PC’s clock is off, the server tells it the time and the editor corrects it and resends.
  • If an old editor (0.9.19 or earlier) connects to a server with require_signed: true, the editor shows “This server accepts only signed requests (security.require_signed) — update NP Editor to a newer version”.
  • If you also turn on Signed requests only on the editor side, the editor does not connect to an old NPBridge (2.0.2 or earlier) that doesn’t know signatures, instead of sending the token in plain text.
  • Signing stops eavesdropping and replay, but it does not encrypt the content. For a server open to the internet, also use the access restrictions below.

Make the NPBridge port reachable only from the PCs that run the editor. Do not open the port to the whole internet.

MethodWhat to do
Firewall + allow_ipsIn the firewall, open that port only for the editor PC’s IP (for example on Ubuntu sudo ufw allow from <editor PC IP> to any port 25590 proto tcp). Put the same IP in allow_ips in config.yml too, then type /npbridge reload.
SSH tunnelNo port is opened (Tips and tricks).
HTTPS reverse proxyIf it must be public, put an HTTPS reverse proxy in front. The editor address is the proxy address.
ProtectionDefaultSetting
Allowed addressesEmpty means everyoneallow_ips (for example ['127.0.0.1', '<editor PC IP>'])
Token brute-force lockout10 failures from one address within 600 seconds block it for 900 secondssecurity.lockout.max_failures · window_seconds · lock_seconds
Requests per address20 per secondrequests_per_second
Live connections16 at once · 60 requests per second per connectionv2.max_sessions · v2.requests_per_second
  • If every request appears to come from one address because the server is behind a reverse proxy, someone else’s failures can lock everyone out. In that case, block at the proxy and set security.lockout.max_failures: 0 (off).
ItemDefault behaviorSetting
Command blocks · structure blocks · jigsawsThe editor cannot place them.security.blocks.forbidden
Command text of existing command blocksThe editor cannot change it.security.blocks.allow_command_block_edits: false
Server commands (“Advanced” allowed commands)Only those in commands.allow. Commands such as op · stop · ban · whitelist · lp · gamerule are refused even if listed.commands.allow · security.commands.deny
Console command action in scene rulesOffscene.runtime.allow-console-commands
Plugin jar deploymentOff (code runs on the server)deploy.plugin
World · resource pack · scene deploymentOndeploy.world · deploy.pack · deploy.scene
KeyDefaultMeaning
tokenCreated on first startThe secret key the editor uses. Do not edit it by hand.
bind0.0.0.0Address to listen on. 127.0.0.1 if you only use an SSH tunnel
port25590NPBridge HTTP port
allow_ips[] (everyone)Addresses allowed to connect
max_body_mb256Maximum request body (MB) — match it to your world deployment size
security.require_signedfalseAccept signed requests only
requests_per_second20Requests per second per address
v2.max_sessions16Number of editors that can connect at once
v2.session_ttl_seconds120Time (seconds) without requests before a live connection disappears
v2.tick_budget_ms2.0Time (ms) the live link uses per server tick
v2.chunk_budget_ms3.0Time (ms) used per tick while an editor receives chunks
v2.presence.ingamefalsetrue = also show a name tag at each editor’s camera position in the game
After changingApplied by
Top-level keys · security.* · deploy.*/npbridge reload
v2.*Takes effect after a server restart.
scene: section/npscene reload
CommandAction
/npbridge · /npbridge statusVersion · address · number of live connections · deployment on · scene features on
/npbridge token · /npbridge token regenShow the token · create a new one
/npbridge reloadRe-read the settings and reopen HTTP. Tells you in red text if the port cannot be opened.
/npbridge sessionsLive connection list and tick times
/npscene help (/nps · /씬)List of map install and scene commands
PermissionDefaultMeaning
npbridge.adminop/npbridge commands (including viewing the token)
npscene.adminopAll scene admin commands
npscene.packeveryoneRe-download the map resource pack
SymptomCauseWhat to do
Editor: “Nothing is listening on this port — …”NPBridge is off · the port did not open · the port in the address differsMatch the port in the server log line listening on …:<port> with the port in the editor address.
Editor: “No response — …” · “Response timed out — …”A firewall or router blocks it, allow_ipsOpen that port for the editor PC’s IP in the firewall. Check that the editor PC’s address is in allow_ips.
Server log: “NPBridge HTTP 를 열지 못했어요 — 포트 … 를 이미 다른 프로그램이 쓰고 있어요 …” (“Couldn’t open NPBridge HTTP — port … is already used by another program …”)Another NPBridge or the resource pack server (25580 · 25581) on the same machineChange port to a free value, then /npbridge reload. Change the editor address too.
Editor: “There is no NPBridge at this address — …”A program other than NPBridge answers on that portMatch port with the port in the editor address.
Editor: “The server blocked this PC …”The editor PC’s address is not in allow_ipsAdd it to allow_ips, then /npbridge reload. If the IP changes often, use an SSH tunnel.
Editor: “Wrong token — …”Wrong token · an old token after token regenCheck it again with /npbridge token and enter it in the editor.
Editor: “Too many wrong tokens, so this PC’s address is blocked for a while …”Brute-force lockoutCheck the token, and reconnect after the lockout time (default 900 seconds).
Editor: “This PC’s clock differs a lot from the server clock — …”The editor PC or server clock is more than 60 seconds offSync both clocks with internet time.
Editor: “The server’s live connection slots are full …”16 connections at once (v2.max_sessions)Check with /npbridge sessions. Unclosed connections disappear after 120 seconds.
Scene features off · large warning (SEVERE) in the logAn old NPScene-*.jar is still presentStop the server, remove the old NPScene jar and start the server again.
Editor: “The server’s NPBridge 2.0.7 does not know the new nodes (…), so the logic was not uploaded — …”You use the new 0.10.2 flow nodes and the server is older than 2.0.8Replace it with the NPBridge.jar (2.0.8) from the installer and reconnect (New nodes and 2.0.8).