From 1357c4c4d259785148547a229150fc263bb62a86 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sat, 23 Apr 2022 18:20:24 +0000 Subject: [PATCH] bstat --- pom.xml | 5 +++++ src/main/java/pl/minecon724/realweather/RW.java | 3 +++ src/main/resources/plugin.yml | 3 ++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2916862..213ea97 100644 --- a/pom.xml +++ b/pom.xml @@ -28,6 +28,11 @@ json 20220320 + + org.bstats + bstats-bukkit + 3.0.0 + diff --git a/src/main/java/pl/minecon724/realweather/RW.java b/src/main/java/pl/minecon724/realweather/RW.java index 748bbb6..d33d849 100644 --- a/src/main/java/pl/minecon724/realweather/RW.java +++ b/src/main/java/pl/minecon724/realweather/RW.java @@ -3,6 +3,7 @@ package pl.minecon724.realweather; import java.util.List; import java.util.logging.Level; +import org.bstats.bukkit.Metrics; import org.bukkit.Bukkit; import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.file.FileConfiguration; @@ -58,6 +59,8 @@ public class RW extends JavaPlugin { settingsSec.getLong("timeBetweenRecheck") ); + new Metrics(this, 15020); + long end = System.currentTimeMillis(); this.getLogger().info( String.format( this.getName() + " enabled! (%s ms)", Long.toString( end-start ) ) ); } diff --git a/src/main/resources/plugin.yml b/src/main/resources/plugin.yml index 5369bce..eb4b7dd 100644 --- a/src/main/resources/plugin.yml +++ b/src/main/resources/plugin.yml @@ -4,4 +4,5 @@ api-version: 1.18 author: Minecon724 main: pl.minecon724.realweather.RW libraries: - - org.json:json:20220320 \ No newline at end of file + - org.json:json:20220320 + - org.bstats:bstats-bukkit:3.0.0 \ No newline at end of file