Player Limit

Player Limit

267 Downloads

This small mod allows you to set a limit, after reaching which, players without special achievement will not be able to join your world.

This is useful, for example, in situations where you need to leave several slots for certain players, but you do not want to make them operators.

Usage:
Mod adds a new gamerule "playerlimit". It is responsible for the number of regular slots that players can occupy. (by default "playerlimit" is set to 20"
If the limit is exceeded, only players with the achievement "Bypass"

To give player ability to join, you need to give him an achievement with the command "/advancement grant <player> only playerlimit:bypass".

Thus, if you set the maximum number of slots on the server to 20, and set the player limit to 10, then you will have 10 regular slots and 10 slots for "VIP" players.

Other information:
Unfortunately, at the moment, mod must be installed both on the server and on the client.
My knowledge of the MCreator does not allow me to fix it yet.

According to my plans I wanted to make several different ways of mod features, which would affect the situations under which the player can join, for example:
-When a player has a special achievement [ready]
-If the player is on the list [in plans]
-If a player has a special item in their inventory [in plans]

Mod was created due to personal needs, but I did not find the necessary mod and tried to make it myself.