Skip to content
NP Editor Docs

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.11.1 installer includes NPBridge 2.4.0. 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.11.0: new features such as physics bodies, weather cues, sequencer figures, the cutscene lens, moving block groups, commands, and chat differ by version. See 0.11.0 features and versions.

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.4.0 · 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.8 – 2.3.0Stop the server, remove the old NPBridge jar from plugins/, put in the new NPBridge.jar (2.4.0), and start. Settings, token, port, and scenes stay as they are. An existing config.yml is not overwritten, so the new setting keys (see 0.11.0 settings below) run at their defaults if you do not add them.
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.4.0.
  • 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.

Since 0.10.2, the Logic graph has 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 editors from 0.10.2 on neither upload through the live link nor deploy 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 they tell 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.

From 0.10.3, View in game for animations in the editor and animated props placed in the map move in the server’s game world. This feature runs on the server from NPBridge 2.0.9.

  • Over the live connection, the editor sends the definition of the animated model (bone motion computed per tick · particles · sounds), and the server shows each bone as a display entity. In the scene it goes in as the actor rig.
  • On servers running 2.0.8 or earlier, View in game does not work, and animated props in the map go out as still displays. Other features keep working.
  • Nothing needs to change in the server settings. For each bone to show its original shape, put the resource pack (including bone models) on the server (Exporting animations and viewing in game).

For the new features of the 0.11.0 and 0.11.1 editors to run on the server, you need the versions below. The editor reads the version and feature list (features) that the server reports, and for a server that does not know a feature it leaves it out of the upload or only warns.

FeatureVersionfeatures
Physics bodies (billiard ball · basketball · colliders) — hit · pick up · throw2.1.0physics
Rotating rigid bodies (physics turned on for blocks and actors) · impact sound · particles · breaking blocks2.1.0rigid
Time-based physics (wake time · hidden before waking · initial spin · timed impulses)2.1.0physics_timed
Cutscene weather cues (rain · thunder strength · lightning)2.1.0weather_cues
Sequencer figures (models the Sequencer moves — 20 Hz baked poses · blade trails) · world-position sound2.2.0seq_rig
Cutscene sky time · fade key colors · float camera angles2.2.1sky_time · fade_key_color
Cutscene lens (field of view · focus · depth of field — with the shader pack NP-Lite)2.3.0lens
Lock guard (blocks in-game changes inside region locks and AI work areas)2.3.1lock_guard
36 player events (sprint · craft · fish · advancement …)2.4.0player_events
Logic commands (name · aliases · arguments · tab completion · permission)2.4.0custom_commands
Chat intercept (cancel chat · replace text · text compare)2.4.0chat_intercept
Moving block groups (scene actor blockgroup — one block display per cell)2.4.0blockgroup

From 2.4.0 the server handles moving block groups (the scene actor blockgroup — one block display per cell) and the world logic commands, chat intercept, and new player events (custom_command · player_chat · text_match · sprint · craft …). The editor does not upload groups to a server whose reported feature list (features) lacks them (2.3.0 and earlier; scene deploy is blocked), and makes the server skip the new trigger rules. A 2.3.0 or older server that receives them without a version mark keeps an actor kind it does not know as data only (the warning “actor ’…’: unknown kind ‘blockgroup’ — kept as data only”) and skips the rules of triggers it does not know (“rule ’…’: unknown trigger.type ’…’ — all rules of that type skipped”).

  • Rules with the new triggers carry min_bridge: "2.4.0", so servers 2.3.0 and earlier skip those rules (“rule ’…’: needs NPBridge 2.4.0 or later (this server …) — skipped (update the server plugin)”).
  • Only people with the permission npscene.physics.interact (default everyone) can hit, pick up, and throw physics bodies.
  • From 2.4.0 a server command in a chat or command rule, or a server command that contains text a player typed ({message} · {args} …), runs with that player’s permissions. Put the commands that may run from the console in the setting scene.commands.player-input-console.
  • From 2.3.1, inside the editor’s region locks and AI work areas the server blocks in-game changes such as players placing and breaking blocks, buckets, water and lava flowing across the lock border, explosions, and pistons. The bypass permission is npbridge.lock.bypass (nobody has it by default, op included); to turn this off, set v2.presence.lock_guard to false. Commands such as /setblock · /fill from the console or players are not blocked.
  • 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
KeyDefaultMeaning
scene.runtime.physics-max-bodies64(2.1.0) The limit of moving physics bodies per scene (maximum 64)
scene.runtime.physics-budget-ms2.0(2.1.0) The time budget for one physics tick step (ms). If exceeded, the next tick is less precise
scene.runtime.seq-rig-lag-ticks0(2.2.0) Sequencer figure delay in ticks. 0 = camera 1-tick interpolation + looking ahead at cuts, 1 = when the network jitters and the camera shakes (both camera and figures are 2 ticks late)
scene.cinematic.camera-float-rotationtrue(2.2.1) Send camera angles as float. false = vanilla byte angles (rounded down to 1.40625° steps — the picture drifts in narrow field-of-view cuts)
scene.cinematic.lenstrue(2.3.0) Send the cutscene lens to the shader pack NP-Lite with fake items in the viewer’s two hands. false = do not send
scene.cinematic.weather-far-boltsnear(2.1.0) Lightning more than 64 blocks away horizontally from the camera (the bolts the editor draws): near = strike at the 60-block spot in the same direction instead · exact = at that spot as is (a server with a longer tracking distance) · skip = do not strike
scene.cinematic.weather-flash-boltsnear(2.1.0) Distant lightning that is only a flash and thunder, with no bolt in the editor: near · exact · skip
scene.cinematic.weather-viewers-onlytrue(2.1.0) Cutscene lightning only for the viewers (false = everyone nearby)
v2.presence.lock_guardtrue(2.3.1) Blocks in-game changes (placing · breaking · buckets · water flow · explosions · pistons …) inside the editor’s region locks and AI work areas. Takes effect right away with /npbridge reload
scene.runtime.custom-commands-max64(2.4.0) The cap on scene commands registered on the server (server-wide). Commands over the cap are not registered, with a warning
scene.commands.player-input-console[](2.4.0) Server commands run by text a player typed that may run from the console (all permissions). Example: [give]
  • scene.verify.enabled is for check-only servers. Leave it at false on a production server.
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
npscene.physics.interacteveryone(2.1.0) Hit, pick up, and throw scene physics bodies
npbridge.lock.bypassnobody (op included)(2.3.1) Place · break · use buckets · light fires in game even inside the editor’s region locks
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.4.0) from the installer and reconnect (New nodes and 2.0.8).
Editor: “N physics bodies were not sent because this server (NPBridge below 2.1.0) doesn’t know them — update the server plugin and reconnect”The server is older than 2.1.0Replace it with the NPBridge.jar (2.4.0) from the installer and reconnect.
Editor: “N moving block groups weren’t uploaded — this server lacks the feature ‘blockgroup’ (NPBridge below 2.4.0). …” · “Server NPBridge … does not know the scene actors (blockgroup ×N), so the scene was not deployed — …”The server lacks the blockgroup feature (older than 2.4.0 — including 2.3.0 from the 0.11.0 installer)Replace the server plugin with NPBridge.jar (2.4.0) from the 0.11.1 installer, then reconnect and deploy again.
Export warning: “N physics bodies need server NPBridge 2.1.0 or later (older servers keep these actors as data only)” · “N moving block groups (N entities) need server NPBridge 2.4.0 or later (…)” · “scene: N rules use new events · nodes from server NPBridge 2.4.0 or later (…) — older servers skip these rules (they won’t run)”A file export does not know the server that will receive it, so it only warns.Check that the server you install on has that version or later (2.1.0 for physics; 2.4.0 for groups and the new trigger rules — the version in the 0.11.1 installer).
Editor: “N sequencer fighter(s) were pushed without baked poses because this server (NPBridge below 2.2.0) does not know them (…)”The server is older than 2.2.0Replace it with the NPBridge.jar (2.4.0) from the installer. Until then the figures stop on the first frame.
Editor: “Cut lens (FOV · focus · depth of field, N sequences) plays on server NPBridge 2.3.0 or later + shader pack NP-Lite (NP_LENS) — …”The server is older than 2.3.0, or lacks the lens featureReplace it with the NPBridge.jar (2.4.0) from the installer. The player side needs the shader pack NP-Lite to see the lens.
Command and chat rules or new player events do not work in the gameThe server is older than 2.4.0 (no custom_commands · chat_intercept · player_events feature)Replace the server plugin with 2.4.0. If a command is not registered, check the scene warnings in the server log (alias and argument limits, the command cap scene.runtime.custom-commands-max).