mirror of
https://github.com/BGHDDevelopment/PlayerBalancer.git
synced 2024-09-19 03:01:18 +02:00
Removed description of the DIRECT provider (no longer exists)
This commit is contained in:
parent
135f109782
commit
3b3e76adeb
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user