Skip to content
Snippets Groups Projects
Commit 12d6bd02 authored by Zandor Smith's avatar Zandor Smith :computer:
Browse files

+ Added metrics.

parent b83b3904
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,9 @@ import com.zandor300.zsutilities.utilities.particles.ParticleEffect;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.mcstats.Metrics;
import java.io.IOException;
/**
* @author Zandor Smith
......@@ -46,6 +49,14 @@ public class FlyingParticles extends JavaPlugin {
plugin = this;
chat.sendConsoleMessage("Sending metrics...");
try {
new Metrics(this).start();
chat.sendConsoleMessage("Submitted stats to MCStats.org.");
} catch (IOException e) {
chat.sendConsoleMessage("Couldn't submit stats to MCStats.org...");
}
chat.sendConsoleMessage("Starting timers...");
Bukkit.getScheduler().runTaskTimer(this, new Runnable() {
@Override
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment