File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
src/main/java/me/jaimemartz/lobbybalancer Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 3838 <orderEntry type =" library" name =" Maven: me.jaimemartz:faucet-bungee:1.0" level =" project" />
3939 <orderEntry type =" library" name =" Maven: me.jaimemartz:faucet-core:1.0" level =" project" />
4040 <orderEntry type =" library" name =" Maven: org.apache.commons:commons-lang3:3.4" level =" project" />
41- <orderEntry type =" library" name =" Maven: org.bstats:bstats-bungeecord:1.1 " level =" project" />
41+ <orderEntry type =" library" name =" Maven: org.bstats:bstats-bungeecord:1.2-SNAPSHOT " level =" project" />
4242 <orderEntry type =" library" scope =" TEST" name =" Maven: junit:junit:4.12" level =" project" />
4343 <orderEntry type =" library" scope =" TEST" name =" Maven: org.hamcrest:hamcrest-core:1.3" level =" project" />
4444 </component >
Original file line number Diff line number Diff line change 1919import org .inventivetalent .update .bungee .BungeeUpdater ;
2020
2121import java .io .IOException ;
22+ import java .util .concurrent .Callable ;
2223import java .util .logging .Level ;
2324
2425public class LobbyBalancer extends Plugin {
@@ -49,12 +50,7 @@ public void onEnable() {
4950
5051 //Metrics (https://bstats.org/)
5152 Metrics metrics = new Metrics (this );
52- metrics .addCustomChart (new Metrics .SingleLineChart ("configured_sections" ) {
53- @ Override
54- public int getValue () {
55- return sectionManager .getSections ().size ();
56- }
57- });
53+ metrics .addCustomChart (new Metrics .SingleLineChart ("configred_sections" , () -> sectionManager .getSections ().size ()));
5854 }
5955
6056 private void enable () {
You can’t perform that action at this time.
0 commit comments