Skip to content

Commit

Permalink
MCStats is pretty much dead
Browse files Browse the repository at this point in the history
  • Loading branch information
Jikoo committed Jul 17, 2018
1 parent 5fe4df8 commit 0ceb68d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 827 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>ChunkSpawnerLimiter</groupId>
<artifactId>ChunkSpawnerLimiter</artifactId>
<version>3.1.2-SNAPSHOT</version>
<version>3.1.2</version>
<name>ChunkSpawnerLimiter</name>
<description>Limit entities in chunks. </description>
<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
import org.bukkit.event.HandlerList;
import org.bukkit.plugin.java.JavaPlugin;

import org.mcstats.Metrics;

import com.cyprias.chunkspawnerlimiter.listeners.EntityListener;
import com.cyprias.chunkspawnerlimiter.listeners.WorldListener;

Expand All @@ -36,7 +34,6 @@ public class ChunkSpawnerLimiterPlugin extends JavaPlugin {
private List<String> ignoreMetadata, excludedWorlds;
private EntityListener entityListener;
private WorldListener worldListener;
private Metrics metrics;

@Override
public void onEnable() {
Expand Down Expand Up @@ -79,21 +76,6 @@ public void onEnable() {
getLogger().severe("Edit your configuration and then run '/csl reload'");
}

// Start the Metrics.
if (getConfig().getBoolean("properties.use-metrics")) {
if (metrics == null) {
try {
metrics = new Metrics(this);
metrics.start();
} catch (IOException e) {}
}
} else if (metrics != null) {
// Our own metrics stop method to disable without disabling for all plugins or cancelling our chunk checks.
// For future metrics revision updates, it's basically just the opt-out check from inside the task.
metrics.stop();
metrics = null;
}

ignoreMetadata = getConfig().getStringList("properties.ignore-metadata");
excludedWorlds = getConfig().getStringList("excluded-worlds");

Expand Down
Loading

0 comments on commit 0ceb68d

Please sign in to comment.