VGKAMI
Advertise Get listed

Game Guides

Mindustry Server Admin Commands and How to Use Them

Published 12 min read

Mindustry server administration is done from the dedicated server’s terminal. Start the server, run help to see syntax for the exact build you installed, then use commands such as admin add, kick, ban, config whitelist true, host, save, and load to control access and gameplay. A dedicated server is a standalone, headless process; unlike a local LAN or Steam host, it can remain online after the game client closes. This guide explains installation, command syntax, player administration, moderation, map rotation, saves, rules, security, and the differences between local, self-hosted, and managed hosting.

What is a Mindustry dedicated server?

A dedicated server is a standalone, headless Mindustry process operated from a terminal rather than from the normal game interface. It exists only to provide multiplayer service, so the game client does not have to stay open. The official Mindustry wiki distinguishes this from a local server, which runs inside the host’s game and ends when that game closes.

That distinction determines which commands you can use. The commands in this article are typed into the dedicated server console. A local host can still moderate players through the in-game interface, but it does not provide the same persistent shell, startup commands, file-based maps, or server-side scripting workflow.

How do I install and start a Mindustry server?

Use a dedicated Linux or Windows machine for a server that should stay available. You need Java, a Mindustry server release, a directory in which to keep it, and network access if people outside your home network will connect.

  1. Install a Java runtime supported by the Mindustry release you intend to run.
  2. Download the desired server release from Mindustry’s official release channel. The file is commonly named server.jar or server-release.jar.
  3. Create a separate directory for the server and place the JAR file there. Keeping maps, saves, logs, and configuration in one directory makes backups and upgrades safer.
  4. Open a terminal or command prompt in that directory.
  5. Start the process with java -jar server.jar, replacing the filename if your download has a different name.
  6. At the server prompt, enter help. This prints the commands and syntax implemented by that particular build.
  7. Open a game with host <mapname> [mode]. If you omit both arguments, the official documentation says the server chooses a random map and uses survival mode.

On Windows, a publicly reachable server commonly needs firewall rules allowing port 6567 over both TCP and UDP. A server used only on the local network does not need the same public exposure. If you are behind a router, forwarding the port and allowing it through the host operating system are separate tasks.

Which command should I use first?

Use help before relying on an example copied from another release. help <command>, such as help save or help ban, displays the accepted arguments for that command in the running build. This is the authoritative syntax check when a release changes an option.

  • version prints server version information.
  • status reports the current server state.
  • players lists players currently connected.
  • admins lists accounts with administrator status.
  • say <message...> sends a message to everyone in the game.
  • pause on pauses the game and pause off resumes it.
  • stop stops hosting while leaving the server application running.
  • exit closes the server application.

A practical startup check is to run version, status, and players before you host a map. That confirms which process you are controlling and whether an old instance is already serving players.

How do I host, change, and rotate maps?

Use host to begin a session and the map commands to control what comes next. Map files and custom content are read from the server’s content locations, so reload them after copying files instead of restarting when possible.

Start or stop a session

  • host <mapname> [mode] opens a game on the named map. Supply the mode when the map should not use the default.
  • stop ends the current hosted game but leaves the process ready for another command.
  • gameover forces the current game to end, allowing normal end-of-game handling to occur.

Inspect and reload maps

  • maps lists custom maps by default.
  • maps all lists all available maps.
  • maps custom lists custom maps explicitly.
  • maps default lists the built-in map set.
  • reloadmaps rereads maps from disk without restarting the process.
  • reloadassets reloads content and patch assets.

Set the next map

  • shuffle none disables rotation.
  • shuffle all permits all available maps.
  • shuffle custom limits rotation to custom maps.
  • shuffle builtin limits rotation to built-in maps.
  • nextmap <mapname...> chooses the map after the next game-over and overrides shuffling for that transition.

If a newly added map does not appear, run reloadmaps and then maps all. If the map still is not listed, check its filename, location, and compatibility with the server version before changing rotation settings.

How do I make someone an admin?

Grant staff status with admin add <username/ID> and remove it with admin remove <username/ID>. Prefer the player’s stable ID or UUID instead of a display name when names can be duplicated, changed, or difficult to type.

  1. Run players to see who is online.
  2. Use info <IP/UUID/name...> if you need to inspect identity details. The command can look up names or IPs associated with a player.
  3. Grant status with admin add <UUID> or the corresponding ID accepted by your build.
  4. Run admins to verify the resulting administrator list.
  5. To revoke access, use admin remove <UUID> and check admins again.

search <name...> searches by part of a name, which is useful when you do not know the complete spelling. The administration API exposes matching operations such as administering or unadministering a player, listing admins, finding a player by name, retrieving information, and searching names; administration is therefore server-side identity state rather than a client-only toggle.

How do I kick, ban, unban, or pardon a player?

Choose the least permanent action that solves the problem. kick disconnects a player, ban blocks a selected identity type, unban reverses a ban, and pardon addresses a player removed by a vote-kick.

Temporary removal

kick <username...> disconnects the named player. It does not create a ban, so the player can reconnect unless another restriction applies.

Identity bans

ban <type-id/name/ip> <username/IP/ID...> lets you choose the identity type and then provide the matching value. Use the type that corresponds to the evidence you have; an IP restriction and an ID restriction have different effects when a player changes networks or accounts.

  • bans lists banned IP addresses and IDs.
  • unban <ip/ID> removes the matching ban.
  • pardon <ID> allows a vote-kicked player to rejoin.

Broader network and name restrictions

  • subnet-ban add <address> rejects connections whose IP begins with the specified string; use subnet-ban remove <address> to undo it.
  • name-ban add <regex> blocks names matching a case-insensitive regular expression. Remove a pattern with name-ban remove <regex>, or clear all name patterns with name-ban clear.
  • dos-ban add <ip> adds a denial-of-service ban, and dos-ban remove <ip> removes it.

Broad subnet and regular-expression bans can catch innocent players, so inspect the exact value before applying one. Keep a record of the original pattern or address so a later removal command can target it precisely.

How do I make a private Mindustry server with a whitelist?

A whitelist is an ID-based allowlist. Enable it first, then add each player’s UUID or ID; names are not accepted for whitelist entries.

  1. Enable enforcement with config whitelist true.
  2. Find the player’s UUID or ID with info or the player information shown by the server.
  3. Add the identity with whitelist add <UUID>.
  4. Remove access later with whitelist remove <UUID>.

The whitelist is separate from administrator status. An administrator still needs to be an allowed identity when whitelist enforcement is active. If a legitimate player cannot join, verify the UUID rather than trying a display name, then check that the configuration value is actually enabled.

How do I save, load, and recover a game?

Save before changing maps, rules, or other settings that could make a session difficult to restore. The server stores saves in its save directory and addresses them by slot.

  • saves lists available save slots.
  • save <slot> [embedAssets] writes the current game to a slot. The optional asset argument controls whether assets are embedded; use help save to confirm the exact accepted form in your release.
  • load <slot> restores a named slot.
  • loadautosave loads the latest autosave.

For example, a commonly documented sequence is save 0, followed later by load 0. Treat that as an example rather than a guarantee of every release’s arguments: run help save and help load on your server first. After saving, run saves to confirm that the slot exists before performing a risky change.

How do I control waves and other gameplay state?

Gameplay commands are useful for events, testing, and recovery, but they can alter a shared session for everyone connected.

  • runwave triggers the next enemy wave immediately.
  • gameover ends the current game.
  • fillitems [team] fills a team’s core with items; specify the team when you do not want the command applied to the default context.
  • pause on and pause off stop or resume simulation without ending the match.

Tell players before using a command that changes the wave schedule, inventory, or game ending. If the action produces an unexpected result, load the most recent verified save rather than stacking additional corrective commands.

How do I change rules, player limits, and server configuration?

Use rules for global gameplay rules, playerlimit for the connection cap, and config for server settings. These are different scopes, so changing one does not automatically change the others.

Global rules

rules lists global rules. rules add <name> <value...> adds or changes one, while rules remove <name> removes it. Global rules apply regardless of the map, which is why a map-specific expectation may change when you set one here.

Player capacity

playerlimit off disables the configured player limit. playerlimit <number> sets a numeric limit. Choose a limit that your machine and network can actually support rather than treating the setting as a performance guarantee; no universal capacity figure is established by the documentation.

Configuration and diagnostics

  • config with no setting or with a setting name inspects configuration; config <name> <value...> sets it.
  • dumpsettings prints settings values for diagnostics.
  • mods lists loaded mods.
  • mod <name...> displays information about a loaded plugin.
  • js <script...> executes JavaScript in the server context. Reserve it for trusted administrators because it is substantially more powerful than routine moderation commands.

Configuration covers the server name and description, port, startup commands, logging, strict mode, anti-spam and message or packet rate limits, UUID-change limits, custom-client policy, whitelist enablement, MOTD, autosave behavior, auto-pause, and command logging. Use dumpsettings before and after a change when you need an audit trail.

What should I do before exposing the server to the internet?

Public hosting adds firewall, port-forwarding, uptime, and abuse-control responsibilities. Start with the smallest exposure that meets your use case.

  • For local-only play, bind and firewall the service for the local network rather than opening it broadly.
  • For public play on Windows, allow the documented default port 6567 for both TCP and UDP, and configure the router if one sits between the server and the internet.
  • Set a recognizable server name and MOTD so players know they reached the intended instance.
  • Enable command logging and review rate-limit, anti-spam, strict-mode, and custom-client settings before inviting strangers.
  • Use the whitelist for a private group and keep an offline copy of saves and configuration.
  • Apply updates deliberately: check the release version, back up the server directory, and test commands with help after upgrading.

The server’s own controls cannot replace upstream network protection. If a public server attracts abuse or denial-of-service traffic, a managed host or cloud service may provide firewall and mitigation features that a home connection does not.

Which hosting model fits my server?

The right choice depends on whether the process must stay online, how much maintenance you want, and whether you need shell access for mods or scripts.

Operating model Online requirement Who handles maintenance Best fit
Local LAN or Steam server Runs only while the host game is open The player hosting the game handles updates, saves, and networking Short sessions with friends on the same network or a simple invitation-based game
Self-hosted dedicated server Can remain online independently of a game client You handle Java, releases, backups, firewall rules, port forwarding, and abuse response Owners who need persistent multiplayer, custom maps, mods, or terminal and script access
Managed Mindustry-compatible hosting Designed for continuous availability, subject to the host’s service terms The provider typically handles the machine and much of the network and runtime work; confirm exact backup and mitigation coverage Communities that want public uptime without administering a server machine

Dedicated servers are generally more suitable for sustained multiplayer and can be modded, while local servers are simpler and terminate with the host game. A managed service can reduce operational work, but verify that it permits the shell, plugins, JavaScript, map files, and configuration access your community requires.

What are the most common command failures?

The server says a command is unknown

Run help and then help <command>. You may be typing a command from a different release, using an outdated alias, or entering it in the game client instead of the dedicated server console.

A player cannot be found

Run players, then search <name> or info <name>. Names can change or contain characters that are easy to mistype; use the returned UUID or ID for administration, bans, and whitelist entries.

A whitelist entry does not work

Confirm that config whitelist true is enabled and that the entry was added with whitelist add <UUID>. A display name will not satisfy the UUID-only whitelist.

A map or save is missing

For maps, run reloadmaps and inspect the result with maps all. For saves, run saves, check the slot spelling, and use loadautosave if the latest automatic recovery point is the safer option.

Players outside the network cannot connect

Check the server’s listening port, the operating-system firewall, and router forwarding independently. On Windows, verify both TCP and UDP rules for port 6567; a rule for only one protocol can produce inconsistent connection failures.

What is a safe administration routine?

Use this sequence when opening a public or semi-private server:

  1. Start the JAR and confirm the build with version.
  2. Read help for any command whose syntax you have not used on this build.
  3. Host a known map and verify it with status and players.
  4. Grant staff with stable IDs, then verify with admins.
  5. Set whitelist, player-limit, logging, and anti-spam configuration before inviting players.
  6. Make a save and verify it appears in saves.
  7. Announce moderation actions with say when they affect the whole group.
  8. Before map or rule changes, save again and keep a copy outside the live server directory.
  9. When shutting down, use stop to end the match cleanly, then exit only when the process itself should close.

Frequently Asked Questions

Can I run Mindustry server commands from the game chat?

These commands are documented for the dedicated server console. A local host has different in-game controls, so enter administrative syntax at the terminal prompt attached to the headless server process.

Will a player keep admin access after changing their display name?

Administration is associated with server-side player identity rather than a client-only name setting. When a name is ambiguous or has changed, use the ID or UUID shown by the server’s information and search commands.

How can I check whether my server is using a custom plugin?

Run mods to list loaded mods, then mod <name> for details about one plugin. This is useful when a command behaves differently from the base server documentation.

What should I back up before upgrading the server JAR?

Copy the complete server directory, including saves, maps, configuration, logs, and plugin or mod files. Keeping that snapshot lets you restore a known-good state if the new build changes command syntax or content compatibility.