File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed
java/com/jaimemartz/playerbalancer Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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)
You can’t perform that action at this time.
0 commit comments