Removed description of the DIRECT provider (no longer exists)

This commit is contained in:
Jaime Martínez Rincón 2017-09-19 21:52:06 +02:00
parent 135f109782
commit 3b3e76adeb
3 changed files with 6 additions and 4 deletions

View File

@ -41,7 +41,10 @@ public class PlayerBalancer extends Plugin {
@Override
public void onEnable() {
Metrics metrics = new Metrics(this);
metrics.addCustomChart(new SingleLineChart("configured_sections", () -> sectionManager.getSections().size()));
metrics.addCustomChart(new SingleLineChart("configured_sections",
() -> sectionManager.getSections().size()
));
this.enable();
}

View File

@ -109,10 +109,10 @@ public final class ServerListPing {
if (id != 0x01) {
throw new IOException("Invalid packetID");
}
long pingtime = dataInputStream.readLong(); //read response
long pingTime = dataInputStream.readLong(); //read response
StatusResponse response = gson.fromJson(json, StatusResponse.class);
response.time = (int) (now - pingtime);
response.time = (int) (now - pingTime);
return response;
}
}

View File

@ -47,7 +47,6 @@ features {
# Providers you can use:
# NONE: Returns no server (no one will be able to connect to this section)
# DIRECT: Returns the only server that is in the list
# BALANCED: Returns a server between the ones with the least players online
# LOWEST: Returns the first server found with the least players online
# RANDOM: Returns a server selected by a RNG algorithm (random)