File tree Expand file tree Collapse file tree 5 files changed +11
-8
lines changed
src/main/java/de/bluecolored/bluemap/bukkit
src/main/java/de/bluecolored/bluemap/sponge Expand file tree Collapse file tree 5 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ repositories {
1111dependencies {
1212 shadow " org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT"
1313
14- compile group : ' org.bstats' , name : ' bstats-bukkit-lite' , version : ' 1.7 '
14+ compile group : ' org.bstats' , name : ' bstats-bukkit-lite' , version : ' 1.5 '
1515
1616 compile (project(' :BlueMapCommon' )) {
1717 // exclude dependencies provided by bukkit
Original file line number Diff line number Diff line change @@ -85,7 +85,6 @@ public BukkitPlugin() {
8585
8686 @ Override
8787 public void onEnable () {
88- new MetricsLite (this , 5912 );
8988
9089 //save world so the level.dat is present on new worlds
9190 Logger .global .logInfo ("Saving all worlds once, to make sure the level.dat is present..." );
@@ -137,6 +136,9 @@ public void onEnable() {
137136 this .pluginInstance .unload ();
138137 }
139138 });
139+
140+ //init bstats
141+ new MetricsLite (this );
140142 }
141143
142144 @ Override
Original file line number Diff line number Diff line change 11dependencies {
22 shadow " org.spongepowered:spongeapi:7.2.0"
33
4- compile group : ' org.bstats' , name : ' bstats-sponge-lite' , version : ' 1.7 '
4+ compile group : ' org.bstats' , name : ' bstats-sponge-lite' , version : ' 1.5 '
55
66 compile (project(' :BlueMapCommon' )) {
77 // exclude dependencies provided by sponge
Original file line number Diff line number Diff line change @@ -75,6 +75,10 @@ public class SpongePlugin implements ServerInterface {
7575 @ ConfigDir (sharedRoot = false )
7676 private Path configurationDir ;
7777
78+ @ Inject
79+ @ SuppressWarnings ("unused" )
80+ private MetricsLite2 metrics ;
81+
7882 private Plugin pluginInstance ;
7983 private SpongeCommands commands ;
8084
@@ -85,17 +89,14 @@ public class SpongePlugin implements ServerInterface {
8589 private List <SpongePlayer > onlinePlayerList ;
8690
8791 @ Inject
88- public SpongePlugin (org .slf4j .Logger logger , MetricsLite2 . Factory bstatsFactory ) {
92+ public SpongePlugin (org .slf4j .Logger logger ) {
8993 Logger .global = new Slf4jLogger (logger );
9094
9195 this .onlinePlayerMap = new ConcurrentHashMap <>();
9296 this .onlinePlayerList = Collections .synchronizedList (new ArrayList <>());
9397
9498 this .pluginInstance = new Plugin ("sponge" , this );
9599 this .commands = new SpongeCommands (pluginInstance );
96-
97- //init bstats metrics
98- bstatsFactory .make (5911 );
99100 }
100101
101102 @ Listener
Original file line number Diff line number Diff line change 11org.gradle.jvmargs =-Xmx3G
22org.gradle.daemon =false
33
4- coreVersion =0.10.2
4+ coreVersion =0.10.3
55
66targetVersion =mc1.13
You can’t perform that action at this time.
0 commit comments