Commands
Every player and admin command, the permission each one needs, and how to rename them.
One main command covers everything. Players use it to open their menus and manage their minions, and admins use it to hand out items and look after other players' minions. The name, the aliases and every subcommand label can be changed in config.yml.
Player commands
| Command | Permission | What it does |
|---|---|---|
/minion | minioncore.use | Opens the main menu, with buttons for the shop, your minion list and items waiting to be claimed |
/minion help [page] | none | Shows the player help, a page at a time |
/minion list | minioncore.list | Opens the list menu with your placed minions. Clicking one opens a read only view of it |
/minion list <page> | minioncore.list | Lists your placed minions in chat with their type, level, world, position and status, 8 to a page |
/minion shop | minioncore.shop | Opens the minion shop |
/minion remove | minioncore.remove | Picks up the minion you are looking at |
/minion pair | minioncore.pair | Starts pairing a minion with a chunk collector. Type it again to stop |
/minion sounds | minioncore.sounds | Turns minion sounds off or back on for you only. The choice is kept when you rejoin. See Muting minion sounds |
/minion holograms hide|show this | minioncore.holograms.toggle | Hides or shows the hologram of the minion you are looking at. See Hiding holograms |
/minion holograms hide|show all [player] | minioncore.holograms.bulk | Hides or shows the holograms of all your minions. A player name needs minioncore.holograms.others |
/minion holograms hide|show type <type> [player] | minioncore.holograms.bulk | The same for one minion type |
/minion holograms view [on|off] | minioncore.holograms.view | Hides or shows every minion hologram for you only. The choice is kept when you rejoin |
Notes:
/minion list,/minion shop,/minion remove,/minion pairand/minion soundscan only be run by a player, not from the console./minion hologramsworks from the console only with a player name afterallortype./minion listwith no page opens the list menu. The view it opens shows the minion's status, whether it is working, its storage, fuel, statistics and location. Nothing can be taken or changed from there. Add a page number, such as/minion list 1, to get the chat list instead./minion shoponly exists while the shop is switched on (enabled: trueinshop.yml). While it is off, the label is not suggested and typing it shows the unknown command message./minion removeworks on a minion up to 6 blocks away, in the direction you are looking. You must own it or haveminioncore.admin.bypass. Trusted players cannot use it, even on a type that lets trusted players pick up with shift and right click. It follows the same rules as a normal pick up, see Placing and picking up./minion pairasks you to right click the chunk collector first, then the minion to pair with it. A confirm menu opens before the pair is made. Pairing stops when you type the command again, when you log out, or aftercollectors.pair-timeout-secondsinconfig.yml, which ships as60. You need thepairaccess on the collector, and the minion must be yours and have the same owner as the collector unless you haveminioncore.admin.bypass. See Collector pairing.
Admin commands
Giving items
| Command | Permission | What it does |
|---|---|---|
/minion give <player> <type> [amount] | minioncore.admin.give | Gives minion items of a type |
/minion fuel <player> <fuel> [amount] | minioncore.admin.fuel | Gives fuel items |
/minion upgrade <player> <upgrade> [amount] | minioncore.admin.upgrade | Gives upgrade items |
<type>is the file name of a minion type in theminionsfolder, such asminer.<fuel>is an id fromfuel.yml, or a fuel set in a type file written as<type>:<key>such asminer:coal, and<upgrade>is an id fromupgrades.yml.[amount]defaults to 1.givehands out at most 64 minions at once,fuelandupgradeat most 2304 items.- The player can be offline, as long as they have joined the server before. Their items go to the claim queue and are handed over when they next join. Whatever does not fit then waits behind the claim button in the main menu. Anything that does not fit in an online player's inventory goes to the claim queue too. See Shop and claims.
- These work from the console, so a store or crate plugin can run them.
minion give Steve miner 1
minion fuel Steve basic 32
minion upgrade Steve storage-1 1basic and storage-1 are ids from the shipped fuel.yml and upgrades.yml. If you rename or add entries, use your own ids, the command suggests them as you type.
Server tools
| Command | Permission | What it does |
|---|---|---|
/minion reload | minioncore.admin.reload | Reads every config and language file again, applies minion type changes to placed minions and sends a short summary |
/minion admin | minioncore.admin | Opens the admin menu, see Admin tools |
/minion admin help [page] | any admin node | Shows the admin help, a page at a time |
/minion admin list <player> [page] | minioncore.admin.list | Lists another player's placed minions, 8 to a page |
/minion admin remove <player> [type] | minioncore.admin.remove | Removes all of a player's minions, or only those of one type |
/minion admin setlevel <level> | minioncore.admin.setlevel | Sets the level of the minion you are looking at |
/minion admin debug | minioncore.admin.debug | Shows queued and loaded minions, actions per second, the average action time, and how many minions each world has |
/minion admin refresh-models | minioncore.admin.refresh-models | Puts the ModelEngine model back on every loaded ModelEngine minion, so a changed model shows without a full reload, and says how many were refreshed |
/minion admin debug ground | minioncore.admin.debug | Lists dropped items within 16 blocks and which chunk collector takes each one, or why none does. Player only |
Notes:
/minion adminwith nothing after it opens the menu for players withminioncore.admin. From the console, or for a player with only some admin nodes, it shows the admin help instead./minion admin removeasks for confirmation. Run the same command again within 10 seconds to go ahead. The minion items and their stored items go to the owner, or to the owner's claim queue if they are offline. A minion is left in place when its storage is not empty andpickup.storageisBLOCK, or when the owner is online without room in their inventory. The command tells you how many were skipped./minion admin setlevelworks on the minion up to 6 blocks away that you are looking at, and can only be run by a player. The level is kept between 1 and the highest level in that type file./minion reloadcannot change the command name, the aliases, the subcommand labels, the admin labels or the database. Those need a full restart, and the reload tells you when one of them changed.
Tab completion
Pressing tab suggests only what the sender can use.
- Subcommand labels are hidden when the sender lacks their permission. The
adminlabel is only suggested to senders with at least one admin node, and nothing after it is suggested without one. give,fuel,upgrade,admin listandadmin removesuggest online player names first.- After the player name,
giveandadmin removesuggest minion type ids,fuelsuggests fuel ids, andupgradesuggests upgrade ids. - Amounts suggest
1,16and64. helpsuggests its page numbers.
Aliases
With the shipped config.yml, /minions and /minioncore run the same command as /minion. All the subcommands work the same under any of the three names. The aliases come from command.aliases, so you can change or remove them.
Renaming commands
Everything a player types can be changed in config.yml.
command:
name: minion
aliases:
- minions
- minioncore
labels:
help: help
list: list
shop: shop
remove: remove
pair: pair
give: give
fuel: fuel
upgrade: upgrade
reload: reload
admin: admin
admin-labels:
help: help
list: list
remove: remove
setlevel: setlevel
debug: debug| Key | What it changes |
|---|---|
command.name | The main command, /minion by default |
command.aliases | Other names for the main command |
command.labels.<id> | The word typed for one subcommand. For example labels.list: liste makes it /minion liste |
command.admin-labels.<id> | The word typed after admin for one admin subcommand. For example admin-labels.list: liste makes it /minion admin liste |
Player and admin labels are kept apart, so renaming labels.list changes /minion list and leaves /minion admin list as it is. The admin word itself is labels.admin. Files from 1.0.0-1 may still have labels.setlevel and labels.debug. Nothing reads them any more and they can be deleted.
Restart the server after changing any of these. /minion reload reads the new values but keeps the running command as it is. It tells you when the name no longer matches, and sends general.reload-restart-settings when the aliases or any label changed since startup.
/minion is built into the plugin, so it keeps working alongside a new name. Every other name comes from config.yml, so taking an alias out of command.aliases removes it after a restart. If a server does not let plugins register a custom command name, the console prints one line saying so and the plugin carries on under /minion.
Help lines follow renamed labels by themselves. Each line is built from the label in use now plus the arguments under help.arguments.<id> or admin-help.arguments.<id> in your language file, so renaming labels.list to liste shows /minion liste [page] in the help. See Messages and language.
Paginated help
/minion help [page] lists the player commands and /minion admin help [page] lists the admin commands. Each page holds 6 lines by default.
help:
per-page: 6
admin-help:
per-page: 6The header, each line, the footer and every description can be edited in the language file. Leave footer empty to hide it.
Related pages
- Permissions for every node, and Limits by rank for limits
- Admin tools for the admin menu
- Placeholders for scoreboard and tab list values