Information: Minecraft Server: I started working on my old Minecraft server called Terona. Join our discord if you want :D Join

NetworkLock commands and permissions

Every /networklock subcommand, what its output means, and the permissions that control it.

NetworkLockChecked

On this page

NetworkLock has one command, /networklock, with the alias /nlock. It works the same on proxies and game servers. Run it from the console or in game.

Subcommands#

CommandWhat it does
/networklock helpLists the subcommands you are allowed to use. Also shown when you type /networklock alone.
/networklock statusShows whether protection is active and the main settings.
/networklock reloadChecks the config and applies it only if it is valid.
/networklock doctorLooks for setup mistakes.
/networklock statsCounts allowed and refused logins since startup. On game servers it also shows how full the replay memory is.
/networklock proxiesShows key fingerprints, so you can compare proxy and game server without showing the key.
/networklock aboutShows the plugin version, LATEST or OUTDATED, the update notify setting and the server count.
/networklock versionThe 1.0.0 name, still accepted. Shows the same as about.

An unknown subcommand gives Unknown command. Use /networklock help.

Permissions#

PermissionDefault on Paper, Spigot and forksGives
networklock.adminopEvery subcommand.
networklock.command.<name>opOne subcommand, for example networklock.command.doctor. version uses networklock.command.about.
networklock.notifyopTold about new versions when joining the proxy. networklock.admin also counts.

On Velocity, BungeeCord, Waterfall and Sponge, grant these with your permissions plugin, for example LuckPerms. The console can always run every subcommand.

What the output means#

status#

On a game server:

text
State: enforcing
Server id: lobby
Trusted proxies: 1
Token lifetime: 30s (clock skew allowance 5s)
Replay cache: 12/100000
Uptime: 3600s
Platform: Paper 1.21.11-R0.1-SNAPSHOT

On a proxy:

text
State: enforcing
Proxy id: proxy-1
Key fingerprint: 1a2b:3c4d:5e6f:7a8b
Connection limit: 10 per 10s
Tracked addresses: 40, temporarily blocked: 0
Platform: Velocity 3.5.1

If the first line says State: LOCKDOWN, nobody can log in. The reason is in brackets. See Troubleshooting.

stats#

On a game server, stats counts each login result since startup. ok is always shown; the others only once they happened. The names match the reason= in the console:

NameMeaning
okAccepted.
missingNo signature: a direct connection, or forwarding is off.
multipleMore than one signature in the profile.
malformedThe signature could not be read.
unknown_proxySigned by a proxy that is not in trusted-proxies.
bad_signatureThe signature does not match that proxy's key.
wrong_targetSigned for another server name.
expiredOlder than max-token-age-seconds.
not_yet_validThe proxy's clock is too far ahead.
replayedThe signature was already used.
replay_cache_fullToo many signatures to remember.
lockdownThe server is in lockdown.
internal_errorSomething failed while checking.

The last line, for example replay memory: 12 / 100000, shows how many used signatures the game server remembers, out of authentication.replay-cache-max-entries.

On a proxy, stats shows signed connections, throttled logins, blocked logins, refused during lockdown and backend rejections (refusals from game servers that the proxy translated into your messages).

proxies#

On a game server it lists each trusted proxy and its key fingerprints:

text
proxy-1 - key fingerprints [1a2b:3c4d:5e6f:7a8b]

On a proxy it shows its own:

text
This proxy: proxy-1 (key fingerprint 1a2b:3c4d:5e6f:7a8b)
Backends must list this id with a key of the same fingerprint.

The fingerprint is a short one-way hash. It is safe to share, but the key itself is not.

doctor#

Each line starts with OK, INFO, WARN or FAIL. When NetworkLock starts, every line that is not OK is also written to the console as doctor: .... The troubleshooting page explains each line.

Renaming the command#

Since 1.0.1 you can change the name and aliases with commands.name and commands.aliases in config.yml. Restart the server or proxy to apply. See Configuration.

Your likes

Only what this browser did. Your data on this device