com.exaroton.api.server.PlayerInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api Show documentation
Show all versions of api Show documentation
The official exaroton java library
package com.exaroton.api.server;
public class PlayerInfo {
/**
* Maximum player count (slots)
*/
private final int max;
/**
* Current player count
*/
private final int count;
/**
* Current player list (not always available)
*/
private final String[] list;
public PlayerInfo(int max, int count, String[] list) {
this.max = max;
this.count = count;
this.list = list;
}
public int getMax() {
return max;
}
public int getCount() {
return count;
}
public String[] getList() {
return list;
}
}