bukkit java get max players

Java
Bukkit.getMaxPlayers();
Source

Also in Java: