Skip to content

Commit e939b06

Browse files
committed
Merge branch 'base' into mc/1.13
2 parents 208f545 + 54dc666 commit e939b06

File tree

5 files changed

+11
-8
lines changed

5 files changed

+11
-8
lines changed

BlueMapBukkit/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ repositories {
1111
dependencies {
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

BlueMapBukkit/src/main/java/de/bluecolored/bluemap/bukkit/BukkitPlugin.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

BlueMapSponge/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dependencies {
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

BlueMapSponge/src/main/java/de/bluecolored/bluemap/sponge/SpongePlugin.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
org.gradle.jvmargs=-Xmx3G
22
org.gradle.daemon=false
33

4-
coreVersion=0.10.2
4+
coreVersion=0.10.3
55

66
targetVersion=mc1.13

0 commit comments

Comments
 (0)