Commands

What you can type in the console or in chat, and who is allowed to.

Running commands

The same commands work in both places. Anything you type in chat without a slash is an ordinary chat message, shown to everyone. Netherrack logs every command a player runs, such as Steve issued command: /gamemode c.

If you type a command that doesn’t exist, you’re told so; if you lack the permission, you’re told that instead.

Command reference

CommandUsageLevelWhat it does
help
alias ?
/help [page]
/help <command>
0Lists the commands you can use, a page at a time, or explains one command.
version
alias ver
/version0Shows the server software, version and git commit, plugin API version, Java and operating system.
gamemode/gamemode <mode> [player]2Changes a player’s game mode. Without a player it changes your own.
difficulty/difficulty [peaceful|easy|normal|hard|0-3]2Shows or changes the world difficulty. The value is saved in server.properties and level.dat and synced to connected players.
time/time <query|set|add> <value>2Queries or changes the world time. set accepts names like day, night, noon, midnight, sunrise, sunset or a tick value; add adds ticks.
weather/weather <clear|rain|thunder> [duration]2Changes the world weather. The duration is accepted for command compatibility, but Netherrack currently keeps the chosen weather until changed again.
give/give <player> <item> [amount]2Gives a player an item, as vanilla’s command does. The item may be written with or without minecraft:; what doesn’t fit in their inventory is thrown out at their feet.
clear/clear [player]2Empties a player’s inventory, armor, offhand, cursor and open crafting grid. /clear or /clear @s clears your own.
kill/kill [player]2Kills a player, death screen and respawn handshake included, just as a killing blow would. Without a player it kills you; it works on creative players too, as vanilla’s does.
kick/kick <player> [reason]2Disconnects an online player. The optional reason appears on their disconnect screen and in the console logout line; the in-game leave message is unchanged.
ban/ban <player> [reason...]2Adds a lasting ban. Offline names work; banning an online player also saves their XUID and UUID and disconnects them with the same message future logins receive.
pardon
alias unban
/pardon <player>
/unban <player>
2Removes a ban by name, XUID or UUID. The player doesn’t need to be online.
banlist/banlist [ips|players|reload]2Lists banned players, re-reads banned-players.json after a hand edit, or explains that IP bans aren’t kept.
tp/tp <destination>
/tp <victim> <destination>
/tp <x> <y> <z>
/tp <victim> <x> <y> <z>
2Teleports a player, yourself by default, to another player or to a position. Coordinates are where the player’s feet go, as in vanilla, and may be written relative to where they are, e.g. ~ ~5 ~-2.
op/op <player>3Makes an online player an operator.
deop/deop <player>3Takes away a player’s operator status.
whitelist
alias wl
/whitelist <on|off|list|reload>
/whitelist <add|remove> <player>
3Controls who may join while white-list is enabled. Operators can always join.
reload
alias rl
/reload4Re-reads netherrack.yml logging settings and hot-reloads plugins from plugins/, without a full server restart.
plugins
alias pl
/plugins0Lists installed plugins, for example Plugins (1): HelloPlugin. Names are lime green.
stop/stop4Disconnects everyone, saves the world and stops the server.

Plugins can declare their own commands in plugin.yml. They use the default command level and may require an API permission node; see plugin commands.

The Level column is the permission level needed — see below. Angle brackets <like this> are required; square brackets [like this] are optional.

/gamemode

The mode can be written in full or short:

ModeAccepted as
Survivalsurvival, s, 0
Creativecreative, c, 1
Adventureadventure, a, 2
Spectatorspectator, 6
Server defaultdefault, d

default uses the server’s default game mode from server.properties. From the console you must name a player, because the console isn’t one.

/op and /deop

The player must be online. /op saves them to permissions.json by Xbox Live ID, so they stay an operator across restarts and name changes. A player who isn’t signed into Xbox Live has no ID to save, so they can’t be made an operator. /deop removes them again; they go back to the default-player-permission-level.

Being an operator doesn’t unlock everything by itself — it depends on the permission level below.

/whitelist

Controls the allowlist in whitelist.json. /whitelist on and /whitelist off also update white-list in server.properties immediately. /whitelist list shows the saved entries, /whitelist reload re-reads the file after a hand edit, and /whitelist add|remove <player> works for offline names too. Adding an online player also saves their XUID and UUID so the entry survives a gamertag change. Level 3 is required, and operators bypass the whitelist.

/clear

Clears everything a player is carrying, including armor, offhand, the cursor and any open crafting grid. Players can clear themselves with /clear or /clear @s; the console must name a target. Level 2 is required.

/kick

Disconnects an online player. A reason can follow the name and is shown on their disconnect screen and in the console logout line, for example SchleroMC logged out due to: Disconnected. In-game leave messages are unchanged. Level 2 is required.

/ban

Adds a player to banned-players.json. The target may be offline, and everything after the name becomes the stored reason, so /ban Griefer griefing the spawn saves griefing the spawn. If the player is online, Netherrack saves their XUID and UUID too and disconnects them immediately with the same message a banned player sees at login. The message comes from messages.server-ban, with the reason appended. Level 2 is required.

/pardon and /unban

Removes a ban by gamertag, XUID or UUID. The player doesn’t need to be online: /pardon Griefer and /unban Griefer do the same thing. Level 2 is required.

/banlist

Lists the names in banned-players.json. /banlist players is the default; /banlist reload re-reads the file after a hand edit. Nukkit’s /banlist ips is accepted, but Netherrack doesn’t keep IP bans. Level 2 is required.

/plugins

Lists installed plugins alphabetically, e.g. Plugins (1): HelloPlugin. Names are lime green for players and in ANSI lime green on a color-capable console. The list includes disabled plugins, so check the startup log for load errors too. Everyone can use this command; see Plugins.

/reload

Re-reads the logs.debug, logging and labels sections of netherrack.yml, then hot-reloads plugins from plugins/. Loaded plugins are disabled, their listeners/commands/tasks/permissions are cleared, and jars are discovered and loaded again without a full server restart. This is best-effort — a restart is still the safest recovery path for complex plugin state. Level 4 is required.

/version

Include its output when you report a bug — it tells us exactly which build you’re running.

Example output of /version
This server is running Netherrack
Server version: 0.6.0-beta (git commit: cee2419)
Java version: 21.0.4 (Eclipse Adoptium)
Operating system: Linux 6.1.0 (amd64)
Plugin API version: 0.6.0-SNAPSHOT

Permission levels

Every command needs a permission level. Everyone starts at 0, the console is at 4, and operators get the level in op-permission-level (2 by default).

LevelAdds these commands
0help, version, plugins — every player has this
2gamemode, difficulty, time, weather, give, clear, kill, kick, ban, pardon, banlist, tp — what operators get by default
3op, deop, whitelist
4reload, stop — the console always has this
Letting operators run /op and /stop

With the default op-permission-level=2, operators can use the level-2 commands but not op, deop, whitelist, reload or stop. Raise it to 3 to let them manage operators and the whitelist, or 4 to let them reload logging and stop the server. Only give 4 to people you fully trust.