add bstats

This commit is contained in:
Minecon724 2024-09-22 14:31:37 +02:00
parent 27b7576e7b
commit ea708b3a55
Signed by: Minecon724
GPG key ID: 3CCC4D267742C8E8
2 changed files with 24 additions and 2 deletions

21
pom.xml
View file

@ -40,6 +40,18 @@
<artifactId>jarupdater</artifactId> <artifactId>jarupdater</artifactId>
<version>0.1.0</version> <version>0.1.0</version>
</dependency> </dependency>
<dependency>
<groupId>eu.m724</groupId>
<artifactId>jarupdater</artifactId>
<version>0.1.0</version>
</dependency>
<dependency>
<groupId>org.bstats</groupId>
<artifactId>bstats-bukkit</artifactId>
<version>3.0.3</version>
<scope>compile</scope>
</dependency>
</dependencies> </dependencies>
<build> <build>
@ -69,7 +81,14 @@
<goal>shade</goal> <goal>shade</goal>
</goals> </goals>
<configuration> <configuration>
<artifactSet> <relocations>
<relocation>
<pattern>org.bstats</pattern>
<!-- Replace this with your package! -->
<shadedPattern>eu.m724.realweather</shadedPattern>
</relocation>
</relocations>
<artifactSet>
<includes> <includes>
<include>eu.m724:wtapi</include> <include>eu.m724:wtapi</include>
<include>eu.m724:jarupdater</include> <include>eu.m724:jarupdater</include>

View file

@ -6,6 +6,7 @@ import java.io.InputStream;
import java.io.InputStreamReader; import java.io.InputStreamReader;
import java.util.logging.Logger; import java.util.logging.Logger;
import org.bstats.bukkit.Metrics;
import org.bukkit.configuration.file.YamlConfiguration; import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin; import org.bukkit.plugin.java.JavaPlugin;
@ -139,6 +140,8 @@ public class RealWeatherPlugin extends JavaPlugin {
if (GlobalConstants.weatherConfig.enabled) if (GlobalConstants.weatherConfig.enabled)
getCommand("localweather").setExecutor(new LocalWeatherCommand()); getCommand("localweather").setExecutor(new LocalWeatherCommand());
new Metrics(this, 15020);
DebugLogger.info("ended loading", 1); DebugLogger.info("ended loading", 1);
} }