diff --git a/src/main/java/com/jaimemartz/playerbalancer/PlayerBalancer.java b/src/main/java/com/jaimemartz/playerbalancer/PlayerBalancer.java index f8b07a3..865f6c3 100644 --- a/src/main/java/com/jaimemartz/playerbalancer/PlayerBalancer.java +++ b/src/main/java/com/jaimemartz/playerbalancer/PlayerBalancer.java @@ -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(); } diff --git a/src/main/java/com/jaimemartz/playerbalancer/utils/ServerListPing.java b/src/main/java/com/jaimemartz/playerbalancer/utils/ServerListPing.java index 6f9ea34..4caaa52 100644 --- a/src/main/java/com/jaimemartz/playerbalancer/utils/ServerListPing.java +++ b/src/main/java/com/jaimemartz/playerbalancer/utils/ServerListPing.java @@ -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; } } diff --git a/src/main/resources/default.conf b/src/main/resources/default.conf index 2c0e081..1e5aa75 100644 --- a/src/main/resources/default.conf +++ b/src/main/resources/default.conf @@ -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)