int serverAmount = 10;
for(String serverIP : AternosAPI.getNewestServersFromList(serverAmount)) {
System.out.println(serverIP);
}
Output:
speedrunheh.aternos.me
undefinedls.aternos.me
abnormalmcSMP.aternos.me
popnetwork.aternos.me
LifeStealRomaniaoRTb.aternos.me:18381
Hardcore_block.aternos.me
Astheticpixel.aternos.me:20784
abnormalmcSMP.aternos.me
Lab_1.aternos.me:41616
Astheticpixel.aternos.me:20784
Get AternosServer object:
AternosServer aternosServer = AternosAPI.getAternosServer(136468);
Now you can get the data from the specific aternos server:
aternosServer.getOwner();
aternosServer.getIp();
aternosServer.getEdition();
aternosServer.getDiscordInvite();
getTitle() and getDescrition() are not implemented yet! They will always return null!