Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Metrics
Browse files Browse the repository at this point in the history
+ Added bStats metrics
+ Updated logging
  • Loading branch information
Puyodead1 committed May 12, 2022
1 parent e061768 commit 7367835
Show file tree
Hide file tree
Showing 3 changed files with 869 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.puyodead1</groupId>
<artifactId>EnchantCrystals</artifactId>
<version>2.1.4</version>
<version>2.1.5</version>
<packaging>jar</packaging>

<name>EnchantCrystals</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ public final class EnchantCrystals extends JavaPlugin {
private static EnchantCrystals plugin;
public static final String PREFIX = "&7[&dEnchantCrystals&7] ";
private NMSBase nms;
private Metrics metrics;

@Override
public void onEnable() {
plugin = this;
metrics = new Metrics(this, 15180);

EnchantCrystalsUtils.sendConsole(PREFIX + "&b=============================================================");
EnchantCrystalsUtils.sendConsole(PREFIX + "&d=============================================================");

// disable plugin if the server is running anything older than 1.8.3
if (Version.isOlder(Version.v1_8_R3)) {
Expand Down Expand Up @@ -71,8 +73,8 @@ public void onEnable() {
EnchantCrystalsUtils.sendConsole(PREFIX + "&b" + this.getName() + " Version: &e" + Objects.requireNonNull(getServer().getPluginManager().getPlugin(this.getDescription().getName())).getDescription().getVersion());
EnchantCrystalsUtils.sendConsole(PREFIX + "&bMinecraft Version: &e" + getServer().getVersion());
EnchantCrystalsUtils.sendConsole(PREFIX + "&bBukkit Version: &e" + getServer().getBukkitVersion());
EnchantCrystalsUtils.sendConsole(PREFIX + "&bNMS Version: &e" + Version.getCurrentVersion().getVersionInteger());
EnchantCrystalsUtils.sendConsole(PREFIX + "&b=============================================================");
EnchantCrystalsUtils.sendConsole(PREFIX + "&bNMS Version: &e" + Version.getCurrentVersion().toString() + " (" + Version.getCurrentVersion().getVersionInteger() + ")");
EnchantCrystalsUtils.sendConsole(PREFIX + "&d=============================================================");
}

@Override
Expand Down
Loading

0 comments on commit 7367835

Please sign in to comment.