Skip to content

Commit

Permalink
Merge branch 'base' into mc/1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlueF committed Aug 21, 2020
2 parents 208f545 + 54dc666 commit e939b06
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion BlueMapBukkit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repositories {
dependencies {
shadow "org.bukkit:bukkit:1.13.2-R0.1-SNAPSHOT"

compile group: 'org.bstats', name: 'bstats-bukkit-lite', version: '1.7'
compile group: 'org.bstats', name: 'bstats-bukkit-lite', version: '1.5'

compile (project(':BlueMapCommon')) {
//exclude dependencies provided by bukkit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public BukkitPlugin() {

@Override
public void onEnable() {
new MetricsLite(this, 5912);

//save world so the level.dat is present on new worlds
Logger.global.logInfo("Saving all worlds once, to make sure the level.dat is present...");
Expand Down Expand Up @@ -137,6 +136,9 @@ public void onEnable() {
this.pluginInstance.unload();
}
});

//init bstats
new MetricsLite(this);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion BlueMapSponge/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dependencies {
shadow "org.spongepowered:spongeapi:7.2.0"

compile group: 'org.bstats', name: 'bstats-sponge-lite', version: '1.7'
compile group: 'org.bstats', name: 'bstats-sponge-lite', version: '1.5'

compile (project(':BlueMapCommon')) {
//exclude dependencies provided by sponge
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ public class SpongePlugin implements ServerInterface {
@ConfigDir(sharedRoot = false)
private Path configurationDir;

@Inject
@SuppressWarnings("unused")
private MetricsLite2 metrics;

private Plugin pluginInstance;
private SpongeCommands commands;

Expand All @@ -85,17 +89,14 @@ public class SpongePlugin implements ServerInterface {
private List<SpongePlayer> onlinePlayerList;

@Inject
public SpongePlugin(org.slf4j.Logger logger, MetricsLite2.Factory bstatsFactory) {
public SpongePlugin(org.slf4j.Logger logger) {
Logger.global = new Slf4jLogger(logger);

this.onlinePlayerMap = new ConcurrentHashMap<>();
this.onlinePlayerList = Collections.synchronizedList(new ArrayList<>());

this.pluginInstance = new Plugin("sponge", this);
this.commands = new SpongeCommands(pluginInstance);

//init bstats metrics
bstatsFactory.make(5911);
}

@Listener
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false

coreVersion=0.10.2
coreVersion=0.10.3

targetVersion=mc1.13

0 comments on commit e939b06

Please sign in to comment.