Mineplex2018-withcommit/Plugins/Mineplex.Hub.Clans/src/mineplex/clanshub/ServerInfo.java
2017-06-13 23:13:18 -04:00

22 lines
431 B
Java

package mineplex.clanshub;
/**
* Data class for loaded servers
*/
public class ServerInfo
{
public String Name;
public String MOTD;
public int CurrentPlayers = 0;
public int MaxPlayers = 0;
public boolean Hardcore = false;
/**
* Checks how many slots are left on this server
* @return The amount of slots that are left on this server
*/
public int getAvailableSlots()
{
return MaxPlayers - CurrentPlayers;
}
}