Admin Tools
Find, inspect and remove any minion, hand out items to online or offline players, and reload the config.
Admins can see every minion on the server from one menu, jump to any of them, look inside, and remove the ones that should not be there. Commands cover giving minions, fuel and upgrades, fixing levels, checking how the work queue is running, and reloading the config without a restart.
Commands
| Command | What it does | Permission |
|---|---|---|
/minion admin | Opens the admin menu | minioncore.admin |
/minion admin help [page] | Lists the admin commands | Any admin permission |
/minion admin list <player> [page] | Lists a player's minions in chat | minioncore.admin.list |
/minion admin remove <player> [type] | Removes a player's minions, after a confirm | minioncore.admin.remove |
/minion admin setlevel <level> | Sets the level of the minion you look at | minioncore.admin.setlevel |
/minion admin debug [ground] | Shows how the work queue is running, or with ground, why dropped items near you are or are not collected | minioncore.admin.debug |
/minion give <player> <type> [amount] | Gives minion items | minioncore.admin.give |
/minion fuel <player> <fuel> [amount] | Gives fuel items | minioncore.admin.fuel |
/minion upgrade <player> <upgrade> [amount] | Gives upgrade items | minioncore.admin.upgrade |
/minion reload | Reads every config and language file again | minioncore.admin.reload |
give, fuel, upgrade and reload are typed straight after /minion, without admin. Player names, type ids, fuel ids and upgrade ids tab complete. minioncore.admin holds every admin permission, including the owner bypass. See Commands and Permissions.
/minion admin with no arguments opens the menu only for players with the full minioncore.admin. Everyone else with an admin permission gets the admin help instead.
The admin menu
The menu lists every placed minion on the server, 45 to a page, sorted by owner and then by when they were placed. Each entry shows the type's own item, with the type, owner, level and position. Its layout is admin in gui.yml.
Clicking an entry
| Click | What happens |
|---|---|
| Left click | Teleports you next to the minion |
| Right click | Opens the minion's own menu. Every button works for you, as if you were the owner. This also works on a broken minion, which players can only repair |
| Shift click | Removes the minion |
Filters
| Button | Left click | Right click |
|---|---|---|
Filter by owner, slot 47 | Type a player name in chat to show only their minions | Show every owner again |
Filter by type, slot 51 | Step to the next minion type, in alphabetical order | Show every type again |
The owner filter uses the same chat prompt as trusting a player, with input.cancel-word and input.timeout-seconds from config.yml.
Removing from the menu
A removed minion goes back to its owner as an item with its level and upgrades kept, along with everything in its storage.
- If the owner is online, it goes into their inventory.
- If the owner is offline, it goes into their claim queue and is handed over when they join.
A minion is left in place, with the message admin.remove-skipped, when:
pickup.storageisBLOCKinconfig.ymland the minion's storage is not empty.- The owner is online and the minion item and its storage would not fit in their inventory.
- The minion is still loading its storage, or is already being picked up. A shift click in the menu shows
general.minion-busy.
If the database cannot save the removal, the minion stays where it is with everything in it. A shift click in the menu shows pickup.failed, and /minion admin remove leaves it out of the removed count.
A few things carry over on removal:
- A broken minion stays broken, and needs a repair once it is placed again. See Breakdowns and repairs.
- A lumberjack's sapling store is handed over with its storage.
- Removing a minion that was paired with a chunk collector ends that pair. Removing a chunk collector deletes all of its pairs, unlike a pick up by its owner, which keeps them. See Collector pairing.
/minion admin list
/minion admin list Steve
/minion admin list Steve 2Shows the player's minions in chat, 8 to a page, oldest first. Each line uses list.entry from the language file: type, level, world, position and status. The player must have joined the server before.
/minion admin remove
/minion admin remove Steve
/minion admin remove Steve minerRemoves every minion the player owns, or only those of one type when a type id is given.
Run it once
The first run removes nothing. It asks you to confirm.
Run the same command again within 10 seconds
The minions are removed. The items and storage go to the owner the same way as a shift click in the menu, and the same minions are left in place for the same reasons.
The confirm only matches the same player and the same type, or no type.
/minion admin setlevel
/minion admin setlevel 3Look at a placed minion within 6 blocks and run it. The level is set straight away with no cost. A number above the type's highest level sets the highest level, and anything below 1 sets level 1. Only a player can run it.
/minion admin debug
Prints a quick health check of the minion system:
| Line | Shows |
|---|---|
admin.debug-queue | How many minions are waiting in the work queue, and how many are loaded |
admin.debug-speed | Actions per second over the last second, and the average time one action takes in milliseconds |
admin.debug-world | One line per world with how many minions are in it |
If minions slow the server down, lower performance.actions-per-tick in config.yml so less work runs in each tick. See Configuration.
/minion admin debug ground
/minion admin debug groundLists up to 20 dropped items within 16 blocks of you, nearest first. Each line names the item and amount, the real size for a RoseStacker stack, then either the chunk collector that takes it next, with its position, or why no collector does: no collector covers the chunk, the collector is not in GROUND or BOTH mode, it is not working (with its status), the item lies outside its area, the item carries a protected scoreboard tag or data from a protected plugin, RoseStacker stack sizes could not be read, it is still waiting out ground-pickup-delay-seconds or ignore-player-drop-seconds, the filter does not keep it, or there is no room. Only a player can run it.
When an item carries scoreboard tags, a second line under it lists them in alphabetical order, so you can see which plugin tagged it and add the tag to ground-items.protected-tags if those items must stay on the ground.
| Line | Shows |
|---|---|
admin.debug-ground-header | How many dropped items are within %radius% blocks |
admin.debug-ground-item | One item, with %item%, %amount% and %reason% |
admin.debug-ground-tags | The scoreboard tags of the item above, with %tags% |
admin.debug-ground-collector | How a collector is named inside a reason, with %type%, %x%, %y% and %z% |
Each reason is its own admin.ground-* key in the language file. See Chunk collector for what each one means.
Giving items
/minion give Steve miner 2
/minion fuel Steve basic 64
/minion upgrade Steve speed| Command | Id comes from | Amount |
|---|---|---|
give | A minion type file name, such as miner | 1 to 64, default 1 |
fuel | A fuel id in fuel.yml | 1 to 2304, default 1 |
upgrade | An upgrade id in upgrades.yml | 1 to 2304, default 1 |
- Given minions start at level 1.
- Large amounts of fuel and upgrades are split into full stacks.
- The player only needs to have joined the server once. They do not have to be online.
- If the player is offline, everything goes into their claim queue.
- If they are online but their inventory fills up, the rest goes into the claim queue.
These commands work from the console, so a store or crate plugin can run them.
Reloading
/minion reload reads every file again: config.yml, the language files, gui.yml, filters.yml, shop.yml, fuel.yml, upgrades.yml and every minion type file.
Type file changes on placed minions
Changes to type files apply to minions that are already placed, with no need to pick them up or restart:
- Levels, caps and settings. Delay, range, storage, fuel use, the behaviour's
settings, the block list and the block filter switch take the new values on the minion's next action. - The look. A minion whose
appearancesection changed is taken down and put back with the new look, including a switch to or from the owner's skin. Minions whose look did not change are left alone. - The hologram. New lines, heights and spacing are drawn at once, see Holograms and effects.
- Trusted actions and allowed upgrades are checked with the new values on the next click.
- Stopped minions. A minion that stopped because its storage was full or it ran out of fuel tries again straight away, in case the new values give it room.
The reload summary
After the reload the sender gets a short summary. The first line always comes, and the others only when something could not be applied:
| Message key | Sent when | What happens to those minions |
|---|---|---|
general.reload-types-applied | Always. %count% is how many placed minions took the new values | They use the new values |
general.reload-type-missing | Placed minions use a type whose file is gone or has enabled: false | They keep their old settings until a restart, and are left out after it |
general.reload-behaviour-changed | The behaviour of a type with placed minions was changed | They keep the whole old type, old behaviour included, until a restart |
general.reload-level-above-max | Placed minions are above the new highest level, because levels were removed | They keep their level and work with the highest level's values |
general.reload-storage-over | Placed minions hold more than the new storage allows | Nothing is lost. They stop collecting until emptied below the new size |
general.reload-upgrades-not-allowed | Placed minions carry upgrades that allowed-upgrades no longer lists | Those upgrades stay installed and keep working, new ones are refused |
Each warning line gives how many minions are affected in %count% and the type ids in %types%, such as 3 placed minions are above the top level of miner. When a player runs the reload, the warnings go to the console as well. When ItemsAdder finishes loading after startup, minion types are read again the same way, and the console gets the summary if anything could not be applied.
Settings that need a restart
Some things are only read when the server starts. Change these, then restart:
| Setting | Why |
|---|---|
command.name and command.aliases | The command is registered once at startup |
command.labels and command.admin-labels | The subcommand labels are set up at the same time |
The storage section | The database connection is opened at startup |
The reload tells you when one of these changed. A new command name gets general.reload-command-name, and changed aliases, labels or storage settings get general.reload-restart-settings.
If you delete or switch off a type file while minions of that type are placed, those minions keep their old settings until the next restart, and the console says so. After the restart they are left out until the type is back. See Minion type files.
Two minions on one block
A minion can no longer be placed where another one stands. Databases from older versions can still hold two placed minions on the same block, so every start checks for them. The one with the highest level, then the most upgrades, then the oldest, stays. Each other one goes back to its owner as a minion item through the claim queue, with everything it held, and the console logs a warning naming both minions, where they were and who owns them.
Minion bodies and holograms left in the world with no placed minion behind them are removed at the same time. See Placing and picking up.