This commit is contained in:
Minecon724 2022-04-23 18:20:24 +00:00
parent 7d2ef0c492
commit 1357c4c4d2
3 changed files with 10 additions and 1 deletions

View file

@ -28,6 +28,11 @@
<artifactId>json</artifactId> <artifactId>json</artifactId>
<version>20220320</version> <version>20220320</version>
</dependency> </dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.0</version>
</dependency>
</dependencies> </dependencies>
<build> <build>

View file

@ -3,6 +3,7 @@ package pl.minecon724.realweather;
import java.util.List; import java.util.List;
import java.util.logging.Level; import java.util.logging.Level;
import org.bstats.bukkit.Metrics;
import org.bukkit.Bukkit; import org.bukkit.Bukkit;
import org.bukkit.configuration.ConfigurationSection; import org.bukkit.configuration.ConfigurationSection;
import org.bukkit.configuration.file.FileConfiguration; import org.bukkit.configuration.file.FileConfiguration;
@ -58,6 +59,8 @@ public class RW extends JavaPlugin {
settingsSec.getLong("timeBetweenRecheck") settingsSec.getLong("timeBetweenRecheck")
); );
new Metrics(this, 15020);
long end = System.currentTimeMillis(); long end = System.currentTimeMillis();
this.getLogger().info( String.format( this.getName() + " enabled! (%s ms)", Long.toString( end-start ) ) ); this.getLogger().info( String.format( this.getName() + " enabled! (%s ms)", Long.toString( end-start ) ) );
} }

View file

@ -4,4 +4,5 @@ api-version: 1.18
author: Minecon724 author: Minecon724
main: pl.minecon724.realweather.RW main: pl.minecon724.realweather.RW
libraries: libraries:
- org.json:json:20220320 - org.json:json:20220320
- org.bstats:bstats-bukkit:3.0.0