How to Increase the Slots on a Minecraft Java Server
Connect to your server via SFTP and open the file
server.properties.Look for the following entry:
max-players=20max-players=20Change the value to the desired number of players.
Save the changes and restart the server.
Warning
Important: Make sure that your server has enough resources (such as RAM and CPU) to support the increased number of players.