Fix Sponge Errors

This commit is contained in:
MattBDev 2016-05-21 12:54:50 -04:00
parent 13b7a798e6
commit 6f26e42251

View File

@ -71,15 +71,14 @@ import org.spongepowered.api.world.gen.WorldGenerator;
import org.spongepowered.api.world.gen.WorldGeneratorModifier; import org.spongepowered.api.world.gen.WorldGeneratorModifier;
import java.io.File; import java.io.File;
import java.io.IOException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Collection; import java.util.Collection;
import java.util.List; import java.util.List;
import java.util.UUID; import java.util.UUID;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Plugin(id = "PlotSquared", name = "PlotSquared", description = "Easy, yet powerful Plot World generation and management.", url = "https://github" @Plugin(id = "plotSquared", name = "PlotSquared", description = "Easy, yet powerful Plot World generation and management.",
+ ".com/IntellectualSites/PlotSquared", version = "3.3.3") url = "https://github.com/IntellectualSites/PlotSquared", version = "3.3.3")
public class SpongeMain implements IPlotMain { public class SpongeMain implements IPlotMain {
public static SpongeMain THIS; public static SpongeMain THIS;
@ -305,13 +304,9 @@ public class SpongeMain implements IPlotMain {
@Override @Override
public void startMetrics() { public void startMetrics() {
try { SpongeMetrics metrics = new SpongeMetrics(this.game, this.plugin);
SpongeMetrics metrics = new SpongeMetrics(this.game, this.plugin); metrics.start();
metrics.start(); PS.log(C.PREFIX.s() + "&6Metrics enabled.");
PS.log(C.PREFIX.s() + "&6Metrics enabled.");
} catch (IOException ignored) {
PS.log(C.PREFIX.s() + "&cFailed to load up metrics.");
}
} }
@Override @Override