Limits by rank
How many minions each player may place, the limit nodes, how SUM and HIGHEST combine inherited nodes, and LuckPerms setups for ranks.
Limits stop players from filling the server with minions. There are two limits, and a placement has to pass both.
- The total limit caps how many minions a player has placed across every type.
- The type limit caps how many of one type a player has placed.
Each one has its own message, so the player knows which limit they hit:
| Limit | Message key | Shipped text |
|---|---|---|
| Total | placement.limit-reached | You have reached your total minion limit. 10/10 placed across all types. |
| Type | placement.type-limit-reached | You have reached the limit for Miner Minion. 5/5 of this type placed. |
Both take %placed%, how many the player has placed that count towards that limit, and %limit%, the limit itself. The type message also takes %type%. The total limit is checked first, so when both are full the player sees the total message.
A server that updates from an older version keeps its old wording for these two messages, because the language file already has the keys. See Messages and language for how to get the new text.
The nodes
| Permission | Effect |
|---|---|
minioncore.limit.<number> | Sets or adds to the total limit, for example minioncore.limit.10 |
minioncore.limit.unlimited | No total limit. minioncore.limit.* reads the same way |
minioncore.limit.<type>.<number> | Sets or adds to the limit for one type, for example minioncore.limit.miner.8 |
minioncore.limit.<type>.unlimited | No limit for that type. minioncore.limit.<type>.* reads the same way |
<type> is the file name of the type in the minions folder, without .yml. So minions/miner.yml is miner. The nodes are not case sensitive.
These nodes are not listed in plugin.yml, so nobody has them until a permissions plugin gives them out.
When no node matches
| Limit | Used when the player has no matching node | Shipped value |
|---|---|---|
| Total | limits.default in config.yml | 3 |
| Type | max-per-player in that type file | 5 for the farmer, miner, lumberjack, hunter and fisherman, 2 for the chunk loader, 3 for the chunk collector |
The fallback is only used when the player has no true node for that limit at all, and it is never added to a node. A player whose only total node is minioncore.limit.2 may place 2, not 3 plus 2.
max-per-player is the type limit, and it is separate from the total. A player with a total of 10 and a miner max-per-player of 5 can place 5 miners and 5 minions of other types, but not 10 miners.
Being an operator does not give unlimited minions. Operators get limits.default like everyone else unless they have a limit node.
SUM or HIGHEST
limits.mode in config.yml decides what happens when a player holds more than one limit node.
limits:
default: 3
mode: SUMlimits.mode | What the player gets | With limit.5 and limit.8 |
|---|---|---|
SUM | Every true limit node added together. The shipped value | 13 |
HIGHEST | Only the largest true limit node. This is how 1.0.0-1 and 1.0.0-2 worked | 8 |
Any other value is read as SUM. The mode applies to the total limit and to every type limit, when placing and in the %minioncore_limit% placeholders.
The plugin reads every permission the player ends up with, including everything a permissions plugin passes down from parent groups. In both modes:
- A node set to
falseis skipped, as if it was not there. - Each node counts once. A player who gets
minioncore.limit.5from two groups has onelimit.5, not two. - An
unlimitedor*node wins over every number. - A total node and a type node are separate.
minioncore.limit.miner.8does not raise the total limit, andminioncore.limit.10does not raise the miner limit. - Once a player has any true node for a limit, the fallback is no longer used for it, so a node can also set a limit below the fallback.
minioncore.limit.miner.2on its own allows 2 miners even thoughmax-per-playeris5.
SUM adds inherited nodes too. Ranks that each inherit the rank below and each carry their full number end up with much more than that number, see the first example below. A server that updates to 1.0.0-3 gets mode: SUM added to its config.yml, so check your ranks after updating, or set mode: HIGHEST to keep the old behaviour.
Chunk loaders and collectors
By default chunk loaders and chunk collectors do not count towards the total limit, so a player can place them without losing space for working minions. They still count towards their own type limit.
limits:
default: 3
mode: SUM
count-chunk-loaders: false
count-chunk-collectors: falseSet either switch to true to count that kind towards the total.
How minions are counted
Placed minions are counted from the database each time a player places one. Minions in unloaded chunks count too. Minions picked up back into items do not count, and a player who is already over a lowered limit keeps the minions they have placed but cannot place more.
LuckPerms examples
Most examples below use the same ranks: regular players, VIP and VIP+, where each rank inherits the one below it, the usual way ranks are built.
lp creategroup vip
lp creategroup vipplus
lp group vip parent add default
lp group vipplus parent add vipThe group is written as vipplus because a + in a group name is awkward to type in commands and not every plugin that reads group names accepts it. Give it a display name of VIP+ in LuckPerms if players should see that.
Full numbers on every rank
Each rank gets the number it should end up with:
lp group default permission set minioncore.limit.3 true
lp group vip permission set minioncore.limit.5 true
lp group vipplus permission set minioncore.limit.8 true| Rank | Nodes the player ends up with | Total with SUM | Total with HIGHEST |
|---|---|---|---|
| default | limit.3 | 3 | 3 |
| vip | limit.3 from default, limit.5 | 8 | 5 |
| vipplus | limit.3 from default, limit.5 from vip, limit.8 | 16 | 8 |
A VIP+ player inherits limit.3 and limit.5 as well as their own limit.8. SUM adds all three, so they get 16. If you meant VIP+ to have 8, this setup needs HIGHEST.
Keeping the old behaviour
Set the mode to HIGHEST and run /minion reload:
limits:
mode: HIGHESTWith HIGHEST the setup above gives 3, 5 and 8, because only the largest node counts. Each rank only needs its own number, and inheriting the smaller numbers never changes anything. Nothing else has to change.
Steps on each rank
To stay on SUM with inherited ranks, give each rank only what it adds on top of the rank below:
lp group default permission set minioncore.limit.3 true
lp group vip permission set minioncore.limit.2 true
lp group vipplus permission set minioncore.limit.4 true| Rank | Nodes the player ends up with | Total with SUM |
|---|---|---|
| default | limit.3 | 3 |
| vip | limit.3 from default, limit.2 | 5 |
| vipplus | limit.3 from default, limit.2 from vip, limit.4 | 9 |
Two things to watch:
- Every step has to be a different number. Since each node counts once, giving VIP+
limit.3would add nothing, because the player already haslimit.3from default. - The default group needs its own
limit.3node.limits.defaultis never added to a node, so without it a VIP would have only 2.
Extra slots on top of a rank
SUM suits extras that stack, such as slots bought from a store:
lp group vip permission set minioncore.limit.5 true
lp user Steve permission set minioncore.limit.2 trueSteve is a VIP with 2 bought slots, so with SUM he may place 7. With HIGHEST he would have 5, since limit.2 is smaller than limit.5.
Giving a rank less than the rank it inherits
In either mode, take the inherited node away from that group by setting it to false there:
lp group trial parent add vip
lp group trial permission set minioncore.limit.5 false
lp group trial permission set minioncore.limit.4 trueIn LuckPerms a node set on the group itself overrides the same node inherited from a parent, so the trial group sees limit.5 as false and the plugin skips it. With HIGHEST a trial player gets 4. With SUM they get 4 plus any other true node they still inherit, such as limit.3 from default, so 7. Set those to false on the trial group too if it should have exactly 4.
To take a node off the group that set it, use permission unset:
lp group vip permission unset minioncore.limit.5Limits for one type
lp group vip permission set minioncore.limit.miner.8 true
lp group vipplus permission set minioncore.limit.chunkloader.unlimited trueType nodes follow the same rules and the same limits.mode. They are inherited, so a VIP+ player also gets minioncore.limit.miner.8 from vip. With SUM, a VIP+ player who also has minioncore.limit.miner.4 of their own may place 12 miners.
Changes from LuckPerms apply straight away. The next placement uses the new limit. To check what a player ends up with, look at %minioncore_limit% and %minioncore_limit_miner% with PlaceholderAPI, see Placeholders.
Related pages
- Permissions for every other node
- Placeholders to show a player's limit on a scoreboard