> For the complete documentation index, see [llms.txt](https://wiki.incredibleplugins.com/lands/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.incredibleplugins.com/lands/permissions-and-staff-tools/commands.md). Agents can also search and read this documentation through its [MCP server](https://wiki.incredibleplugins.com/lands/~gitbook/mcp).

# Admin Commands

## Admin Commands

Admin commands are for server staff. Do not give these permissions to regular players.

Most `/lands admin` subcommands use the permission format `lands.admin.command.<subcommand>`. The commands that group them need a permission too: `lands.admin.command` for `/lands admin` and `lands.admin.command.land` for `/lands admin land`. `lands.admin.command.*` includes both.

Nested commands add the full path:

| Command                               | Permission                           |
| ------------------------------------- | ------------------------------------ |
| `/lands admin land <land> resetflag`  | `lands.admin.command.land.resetflag` |
| `/lands admin player <player> delete` | `lands.admin.command.player.delete`  |

## Lands Admin Commands

| Command                                                                   | What it does                                                                                                                                                                                                                                 | Permission                                  |
| ------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------- |
| `/lands admin menu`                                                       | Opens the admin menu.                                                                                                                                                                                                                        | `lands.admin.command.menu`                  |
| `/lands admin reload`                                                     | Reloads Lands config, roles, events, and player data cache. Of `levels.yml` only the on/off options, sounds and farm multipliers; changed levels need a restart.                                                                             | `lands.admin.command.reload`                |
| `/lands admin expiration list [duration]`                                 | Lists the lands that are deleted or transferred by [expiration](https://wiki.incredibleplugins.com/lands/claims-and-worlds/expiration.md) within the duration (default `7d`).                                                                | `lands.admin.command.expiration.list`       |
| `/lands admin expiration run`                                             | Checks the lands for expiration now. In preview, it only shows what would happen.                                                                                                                                                            | `lands.admin.command.expiration.run`        |
| `/lands admin limits`                                                     | Opens limit pack tools.                                                                                                                                                                                                                      | `lands.admin.command.limits`                |
| `/lands admin limits refresh`                                             | Refreshes player limit packs.                                                                                                                                                                                                                | `lands.admin.command.limits.refresh`        |
| `/lands admin limits migrate confirm`                                     | Migrates old numbered limit permissions to `player-limits.yml`.                                                                                                                                                                              | `lands.admin.command.limits.migrate`        |
| `/lands admin player <player> limits`                                     | Shows all limits that apply to a player.                                                                                                                                                                                                     | `lands.admin.command.player.limits`         |
| `/lands admin player <player> menu`                                       | Opens the menu view of a player.                                                                                                                                                                                                             | `lands.admin.command.player.menu`           |
| `/lands admin player <player> delete confirm`                             | Deletes stored Lands data for a player.                                                                                                                                                                                                      | `lands.admin.command.player.delete`         |
| `/lands admin database migrate <database> confirm`                        | Migrates Lands data to another database type.                                                                                                                                                                                                | `lands.admin.command.database.migrate`      |
| `/lands admin database backup`                                            | Runs an on-demand database backup.                                                                                                                                                                                                           | `lands.admin.command.database.backup`       |
| `/lands admin database restore <backup> confirm`                          | Restores the database from a backup file.                                                                                                                                                                                                    | `lands.admin.command.database.restore`      |
| `/lands admin land <land> limits`                                         | Shows limits for a land.                                                                                                                                                                                                                     | `lands.admin.command.land.limits`           |
| `/lands admin land <land> menu`                                           | Opens the menu of a land.                                                                                                                                                                                                                    | `lands.admin.command.land.menu`             |
| `/lands admin land <land or all> addrole <role> confirm`                  | Adds a custom role from `roles.yml` to one land or all lands.                                                                                                                                                                                | `lands.admin.command.land.addrole`          |
| `/lands admin land <land or all> setflag <flag> <state> <visitor>`        | Sets a role flag or natural flag in one land or all lands.                                                                                                                                                                                   | `lands.admin.command.land.setflag`          |
| `/lands admin land <land or all> resetflag <flag or all>`                 | Resets one flag or all flags to config defaults.                                                                                                                                                                                             | `lands.admin.command.land.resetflag`        |
| `/lands admin land <land or all> removespawn`                             | Removes the spawn of one land or all lands.                                                                                                                                                                                                  | `lands.admin.command.land.removespawn`      |
| `/lands admin land <land or all> shield set <time>`                       | Sets the war shield time of a land, or of all lands (not nations).                                                                                                                                                                           | `lands.admin.command.land.shield.set`       |
| `/lands admin land <land or all> shield modify <time>`                    | Adds or removes war shield time of a land, or of all lands (not nations).                                                                                                                                                                    | `lands.admin.command.land.shield.modify`    |
| `/lands admin land <land or all> bank set <amount>`                       | Sets the land bank balance.                                                                                                                                                                                                                  | `lands.admin.command.land.bank.set`         |
| `/lands admin land <land or all> bank modify <amount>`                    | Adds or removes land bank balance.                                                                                                                                                                                                           | `lands.admin.command.land.bank.modify`      |
| `/lands admin land <land> level <level> [commands]`                       | Sets the level of a land, up or down, without paying. With `commands` set to `true`, the commands of the levels passed upwards run. See [Levels](https://wiki.incredibleplugins.com/lands/economy-and-progression/levels.md#admin-commands). | `lands.admin.command.land.level`            |
| `/lands admin resetworld <world> confirm`                                 | Deletes all claims and land spawns in a world.                                                                                                                                                                                               | `lands.admin.command.resetworld`            |
| `/lands admin dismiss`                                                    | Dismisses new-flag notices.                                                                                                                                                                                                                  | `lands.admin.command.dismiss`               |
| `/lands admin chatspy [land or nation or all]`                            | Toggles chat spy for one land, one nation, all lands and nations, or disables it with no argument.                                                                                                                                           | `lands.admin.command.chatspy`               |
| `/lands admin debug`                                                      | Prints debug information.                                                                                                                                                                                                                    | `lands.admin.command.debug`                 |
| `/lands admin debug tasks`                                                | Prints task debug information.                                                                                                                                                                                                               | `lands.admin.command.debug.tasks`           |
| `/lands admin import <plugin>`                                            | Imports claims from a supported claim plugin.                                                                                                                                                                                                | `lands.admin.command.import`                |
| `/lands admin hologram create <context> <sorting>`                        | Creates a leaderboard hologram at your location.                                                                                                                                                                                             | `lands.admin.command.hologram.create`       |
| `/lands admin hologram list`                                              | Lists leaderboard holograms.                                                                                                                                                                                                                 | `lands.admin.command.hologram.list`         |
| `/lands admin hologram delete`                                            | Deletes a nearby leaderboard hologram.                                                                                                                                                                                                       | `lands.admin.command.hologram.delete`       |
| `/lands admin player <player> give claimblock <radius> <amount> [silent]` | Gives claim block items.                                                                                                                                                                                                                     | `lands.admin.command.give.claimblock`       |
| `/lands admin player <player> give camp <radius> <amount> [silent]`       | Gives camp items.                                                                                                                                                                                                                            | `lands.admin.command.give.camp`             |
| `/lands admin player <player> give captureflag <amount> [silent]`         | Gives war capture flag items.                                                                                                                                                                                                                | `lands.admin.command.give.captureflag`      |
| `/lands admin player <player> give first-join-items`                      | Gives all enabled first-join items.                                                                                                                                                                                                          | `lands.admin.command.give.first-join-items` |
| `/lands admin listperms <player>`                                         | Lists permissions detected for a player.                                                                                                                                                                                                     | `lands.admin.command.listperms`             |

## Nations Admin Commands

| Command                                                      | What it does                                                                                                                          | Permission                                   |
| ------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------- |
| `/nations admin nation <nation> level <level> [commands]`    | Sets the level of a nation, up or down, without paying. With `commands` set to `true`, the commands of the levels passed upwards run. | `nations.admin.command.nation.level`         |
| `/nations admin nation <nation or all> shield set <time>`    | Sets the war shield time of a nation, or of all nations.                                                                              | `nations.admin.command.nation.shield.set`    |
| `/nations admin nation <nation or all> shield modify <time>` | Adds or removes war shield time of a nation, or of all nations.                                                                       | `nations.admin.command.nation.shield.modify` |

`<land or all>` means that `all` applies the command to all lands where the command supports it. `limits` and `menu` always need a land. `all` is a reserved word: no land, nation, area or role can be named `all` (or `here`).

Admins with `lands.admin.command.edit` can manage *any* land or nation directly through the normal player commands (`/lands ...` / `/nations ...`, or their `/land`/`/nation` aliases) without being an owner or member - use `/lands edit <land>` to point the commands at the land you want to manage. That permission also bypasses restrictions like max member counts for some commands, but never suppresses correctness checks like "player is already trusted" - see [Command Tree Changes](https://wiki.incredibleplugins.com/lands/permissions-and-staff-tools/command-tree-changes.md#lands-edit) for how edit-land resolution works.

## Other Staff Commands

| Command                       | What it does                                                 | Permission                 |
| ----------------------------- | ------------------------------------------------------------ | -------------------------- |
| `/lands menu <player>`        | Opens another player's Lands menu.                           | `lands.admin.command.menu` |
| `/lands rtp <world> <player>` | Random-teleports another player, without cooldown and costs. | `lands.admin.command.rtp`  |

## Wars Admin Commands

War commands live under the `/lands`/`/nations` command trees - see the player wiki's [Wars](https://github.com/IncrediblePlugins/Wiki/tree/lands/players/general/Wars.md) page for the regular `war` subcommand. Wars are **started** through the normal `/lands war declare ...` command, which admins can run on any land/nation using the `lands.admin.command.edit` bypass. Admin-only war actions live under `/lands admin war`:

| Command                                               | What it does                                                                               | Permission                              |
| ----------------------------------------------------- | ------------------------------------------------------------------------------------------ | --------------------------------------- |
| `/lands admin war end <land or nation>`               | Force-ends an upcoming or active war cleanly, without applying the goal or winner rewards. | `lands.admin.command.war.end`           |
| `/lands admin war koth create`                        | Designates the sub-area you're standing in as a KoTH arena.                                | `lands.admin.command.war.koth.create`   |
| `/lands admin war koth setflag`                       | Places the arena's control point at your position.                                         | `lands.admin.command.war.koth.setflag`  |
| `/lands admin war koth setspawn <attacker\|defender>` | Sets a team's arena spawn at your position.                                                | `lands.admin.command.war.koth.setspawn` |
| `/lands admin war koth remove`                        | Removes the arena you're standing in.                                                      | `lands.admin.command.war.koth.remove`   |
| `/lands admin war koth list`                          | Lists KoTH arenas.                                                                         | `lands.admin.command.war.koth.list`     |

There is no `wars.admin.*` permission tree anymore, and no separate nation war-admin command - a nation's war belongs to its capital land, so `/lands admin war end` takes either a land or a nation. See [War Modes and Goals](https://wiki.incredibleplugins.com/lands/rules-flags-and-gameplay/war-modes-and-goals.md) for the KoTH arena setup workflow and caveats.

## Related Permissions

Admin commands are only one part of staff access. See [Permissions](https://wiki.incredibleplugins.com/lands/permissions-and-staff-tools/permissions.md) for bypass permissions, flag permissions, teleport permissions, and non-command admin permissions.
