Installing NPBridge (server admins)
Overview
Section titled “Overview”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.
| What | Details |
|---|---|
| Server | Paper 1.21 or later (built against 1.21.11), Java 21 |
| Other plugins | None 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 |
| Permissions | You need to be able to put files in the server’s plugins/ folder and run commands from the server console or as op. |
| Network | The PCs that run the editor must reach the NPBridge port (default 25590, TCP). |
Basic use
Section titled “Basic use”Installing on a new server
Section titled “Installing on a new server”- On the PC where the editor is installed, type
%LOCALAPPDATA%\Programs\NP Editor\serverin the File Explorer address bar to findNPBridge.jar. - Stop the Minecraft server.
- Copy
NPBridge.jarto the server’splugins/folder. - 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.ymland a token are created, and the log showsgenerated a new token - /npbridge token to see it. - Type
/npbridge statusin the server console or in game (as op). The version and address appear, as in “[NPBridge] 2.4.0 · 0.0.0.0:25590 · …”. - Set up the firewall and
allow_ipsfirst, as described in Restricting access. - 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. - 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.
Updating from an older version
Section titled “Updating from an older version”| Current version | What to do |
|---|---|
| NPBridge 2.0.8 – 2.3.0 | Stop 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.7 | Stop 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 Scene | Stop 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 statusthat the version is2.4.0. - If an old
NPScene-*.jaris 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: 25580inconfig.yml(an existing config file is not overwritten).25580·25581are the ports the Noplatea resource pack server uses, so change it by hand if they clash.
New nodes and 2.0.8
Section titled “New nodes and 2.0.8”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 instop_unknown.
Animated models and 2.0.9
Section titled “Animated models and 2.0.9”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).
0.11.0 features and versions
Section titled “0.11.0 features and versions”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.
| Feature | Version | features |
|---|---|---|
| Physics bodies (billiard ball · basketball · colliders) — hit · pick up · throw | 2.1.0 | physics |
| Rotating rigid bodies (physics turned on for blocks and actors) · impact sound · particles · breaking blocks | 2.1.0 | rigid |
| Time-based physics (wake time · hidden before waking · initial spin · timed impulses) | 2.1.0 | physics_timed |
| Cutscene weather cues (rain · thunder strength · lightning) | 2.1.0 | weather_cues |
| Sequencer figures (models the Sequencer moves — 20 Hz baked poses · blade trails) · world-position sound | 2.2.0 | seq_rig |
| Cutscene sky time · fade key colors · float camera angles | 2.2.1 | sky_time · fade_key_color |
| Cutscene lens (field of view · focus · depth of field — with the shader pack NP-Lite) | 2.3.0 | lens |
| Lock guard (blocks in-game changes inside region locks and AI work areas) | 2.3.1 | lock_guard |
| 36 player events (sprint · craft · fish · advancement …) | 2.4.0 | player_events |
| Logic commands (name · aliases · arguments · tab completion · permission) | 2.4.0 | custom_commands |
| Chat intercept (cancel chat · replace text · text compare) | 2.4.0 | chat_intercept |
Moving block groups (scene actor blockgroup — one block display per cell) | 2.4.0 | blockgroup |
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 settingscene.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, setv2.presence.lock_guardtofalse. Commands such as/setblock·/fillfrom the console or players are not blocked.
Tips and tricks
Section titled “Tips and tricks”- Several servers on one machine: give each server its own NPBridge port too (for example
25590for production ·25591for 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
bindinconfig.ymlto127.0.0.1, and open a tunnel on the editor PC withssh -L 25590:127.0.0.1:25590 <account>@<server>. The editor address ishttp://127.0.0.1:25590. This suits connections whose IP changes often. - Checking server load while connected: type
/npbridge sessionsto 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: trueso the token never travels in plain text (Request signing).
Reference
Section titled “Reference”NPBridge opens one HTTP port, separate from the Minecraft port.
| What | Default | Setting |
|---|---|---|
| NPBridge HTTP (where the editor connects) | 25590 | port · bind in config.yml |
| Minecraft server | 25565 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 25592 | A 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.
| Command | Action |
|---|---|
/npbridge token | Show the current token |
/npbridge token regen | Create 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 edittokeninconfig.ymlby hand. - Typing
/npbridge tokenin 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).
Request signing
Section titled “Request signing”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.
| Setting | Default | Meaning |
|---|---|---|
security.require_signed | false | false = 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_seconds | 60 | Allowed 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.
Restricting access
Section titled “Restricting access”Make the NPBridge port reachable only from the PCs that run the editor. Do not open the port to the whole internet.
| Method | What to do |
|---|---|
Firewall + allow_ips | In 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 tunnel | No port is opened (Tips and tricks). |
| HTTPS reverse proxy | If it must be public, put an HTTPS reverse proxy in front. The editor address is the proxy address. |
| Protection | Default | Setting |
|---|---|---|
| Allowed addresses | Empty means everyone | allow_ips (for example ['127.0.0.1', '<editor PC IP>']) |
| Token brute-force lockout | 10 failures from one address within 600 seconds block it for 900 seconds | security.lockout.max_failures · window_seconds · lock_seconds |
| Requests per address | 20 per second | requests_per_second |
| Live connections | 16 at once · 60 requests per second per connection | v2.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).
Blocked by default
Section titled “Blocked by default”| Item | Default behavior | Setting |
|---|---|---|
| Command blocks · structure blocks · jigsaws | The editor cannot place them. | security.blocks.forbidden |
| Command text of existing command blocks | The 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 rules | Off | scene.runtime.allow-console-commands |
| Plugin jar deployment | Off (code runs on the server) | deploy.plugin |
| World · resource pack · scene deployment | On | deploy.world · deploy.pack · deploy.scene |
Settings (plugins/NPBridge/config.yml)
Section titled “Settings (plugins/NPBridge/config.yml)”| Key | Default | Meaning |
|---|---|---|
token | Created on first start | The secret key the editor uses. Do not edit it by hand. |
bind | 0.0.0.0 | Address to listen on. 127.0.0.1 if you only use an SSH tunnel |
port | 25590 | NPBridge HTTP port |
allow_ips | [] (everyone) | Addresses allowed to connect |
max_body_mb | 256 | Maximum request body (MB) — match it to your world deployment size |
security.require_signed | false | Accept signed requests only |
requests_per_second | 20 | Requests per second per address |
v2.max_sessions | 16 | Number of editors that can connect at once |
v2.session_ttl_seconds | 120 | Time (seconds) without requests before a live connection disappears |
v2.tick_budget_ms | 2.0 | Time (ms) the live link uses per server tick |
v2.chunk_budget_ms | 3.0 | Time (ms) used per tick while an editor receives chunks |
v2.presence.ingame | false | true = also show a name tag at each editor’s camera position in the game |
0.11.0 settings
Section titled “0.11.0 settings”| Key | Default | Meaning |
|---|---|---|
scene.runtime.physics-max-bodies | 64 | (2.1.0) The limit of moving physics bodies per scene (maximum 64) |
scene.runtime.physics-budget-ms | 2.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-ticks | 0 | (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-rotation | true | (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.lens | true | (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-bolts | near | (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-bolts | near | (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-only | true | (2.1.0) Cutscene lightning only for the viewers (false = everyone nearby) |
v2.presence.lock_guard | true | (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-max | 64 | (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.enabledis for check-only servers. Leave it atfalseon a production server.
| After changing | Applied by |
|---|---|
Top-level keys · security.* · deploy.* | /npbridge reload |
v2.* | Takes effect after a server restart. |
scene: section | /npscene reload |
Commands and permissions
Section titled “Commands and permissions”| Command | Action |
|---|---|
/npbridge · /npbridge status | Version · address · number of live connections · deployment on · scene features on |
/npbridge token · /npbridge token regen | Show the token · create a new one |
/npbridge reload | Re-read the settings and reopen HTTP. Tells you in red text if the port cannot be opened. |
/npbridge sessions | Live connection list and tick times |
/npscene help (/nps · /씬) | List of map install and scene commands |
| Permission | Default | Meaning |
|---|---|---|
npbridge.admin | op | /npbridge commands (including viewing the token) |
npscene.admin | op | All scene admin commands |
npscene.pack | everyone | Re-download the map resource pack |
npscene.physics.interact | everyone | (2.1.0) Hit, pick up, and throw scene physics bodies |
npbridge.lock.bypass | nobody (op included) | (2.3.1) Place · break · use buckets · light fires in game even inside the editor’s region locks |
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause | What to do |
|---|---|---|
| Editor: “Nothing is listening on this port — …” | NPBridge is off · the port did not open · the port in the address differs | Match 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_ips | Open 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 machine | Change 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 port | Match port with the port in the editor address. |
| Editor: “The server blocked this PC …” | The editor PC’s address is not in allow_ips | Add 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 regen | Check 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 lockout | Check 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 off | Sync 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 log | An old NPScene-*.jar is still present | Stop 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.8 | Replace 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.0 | Replace 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.0 | Replace 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 feature | Replace 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 game | The 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). |
Related docs
Section titled “Related docs”Not an official Minecraft product. Not approved by or associated with Mojang or Microsoft.