Skip to content

Commit 3b3e76a

Browse files
committed
Removed description of the DIRECT provider (no longer exists)
1 parent 135f109 commit 3b3e76a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/main/java/com/jaimemartz/playerbalancer/PlayerBalancer.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ public class PlayerBalancer extends Plugin {
4141
@Override
4242
public void onEnable() {
4343
Metrics metrics = new Metrics(this);
44-
metrics.addCustomChart(new SingleLineChart("configured_sections", () -> sectionManager.getSections().size()));
44+
metrics.addCustomChart(new SingleLineChart("configured_sections",
45+
() -> sectionManager.getSections().size()
46+
));
47+
4548
this.enable();
4649
}
4750

src/main/java/com/jaimemartz/playerbalancer/utils/ServerListPing.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public StatusResponse ping(InetSocketAddress host) throws IOException {
109109
if (id != 0x01) {
110110
throw new IOException("Invalid packetID");
111111
}
112-
long pingtime = dataInputStream.readLong(); //read response
113112

113+
long pingTime = dataInputStream.readLong(); //read response
114114
StatusResponse response = gson.fromJson(json, StatusResponse.class);
115-
response.time = (int) (now - pingtime);
115+
response.time = (int) (now - pingTime);
116116
return response;
117117
}
118118
}

src/main/resources/default.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ features {
4747

4848
# Providers you can use:
4949
# NONE: Returns no server (no one will be able to connect to this section)
50-
# DIRECT: Returns the only server that is in the list
5150
# BALANCED: Returns a server between the ones with the least players online
5251
# LOWEST: Returns the first server found with the least players online
5352
# RANDOM: Returns a server selected by a RNG algorithm (random)

0 commit comments

Comments
 (0)