Add bStats Metrics
This commit is contained in:
parent
9e8ac2d4fe
commit
4419dc6d7f
1 changed files with 5 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ import net.frankheijden.serverutils.commands.CommandPlugins;
|
|||
import net.frankheijden.serverutils.commands.CommandServerUtils;
|
||||
import net.frankheijden.serverutils.config.Messenger;
|
||||
import net.frankheijden.serverutils.reflection.*;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.command.*;
|
||||
import org.bukkit.command.defaults.PluginsCommand;
|
||||
|
|
@ -19,6 +20,8 @@ import java.util.stream.Collectors;
|
|||
|
||||
public class ServerUtils extends JavaPlugin implements CommandExecutor {
|
||||
|
||||
private static final int BSTATS_METRICS_ID = 7790;
|
||||
|
||||
private static ServerUtils instance;
|
||||
private PaperCommandManager commandManager;
|
||||
private CommandPlugins commandPlugins;
|
||||
|
|
@ -32,6 +35,8 @@ public class ServerUtils extends JavaPlugin implements CommandExecutor {
|
|||
super.onEnable();
|
||||
instance = this;
|
||||
|
||||
new Metrics(this, BSTATS_METRICS_ID);
|
||||
|
||||
this.commandManager = new PaperCommandManager(this);
|
||||
commandManager.registerCommand(new CommandServerUtils());
|
||||
this.commandPlugins = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue