Minecraft wiki entry for setmaxplayers, associated text: Specifies the desired new maximum number of players. If less than the current number of players or greater than the maximum number of connections the server can accept, the argument is forced into this range. The integer must be between 1 to 30.