Add mStats

This commit is contained in:
Minecon724 2025-05-24 14:56:32 +02:00
commit d55939c116
Signed by: Minecon724
GPG key ID: A02E6E67AB961189
3 changed files with 9 additions and 12 deletions

View file

@ -53,6 +53,11 @@
<artifactId>jarupdater</artifactId>
<version>0.1.8</version>
</dependency>
<dependency>
<groupId>eu.m724</groupId>
<artifactId>mstats-spigot</artifactId>
<version>0.1.2</version>
</dependency>
</dependencies>
<build>

View file

@ -7,9 +7,9 @@ import java.io.InputStreamReader;
import java.nio.charset.StandardCharsets;
import java.util.logging.Logger;
import eu.m724.mstats.MStatsPlugin;
import eu.m724.wtapi.provider.exception.NoSuchProviderException;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.plugin.java.JavaPlugin;
import eu.m724.realweather.commands.AdminCommand;
import eu.m724.realweather.commands.GeoCommand;
@ -30,7 +30,7 @@ import eu.m724.realweather.weather.WeatherMaster;
import eu.m724.wtapi.provider.exception.ProviderException;
// TODO unmess this too
public class RealWeatherPlugin extends JavaPlugin {
public class RealWeatherPlugin extends MStatsPlugin {
private WeatherMaster weatherMaster;
private ThunderMaster thunderMaster;
private TimeMaster timeMaster;
@ -136,16 +136,7 @@ public class RealWeatherPlugin extends JavaPlugin {
getCommand("localweather").setExecutor(new LocalWeatherCommand());
}
/*Metrics metrics = new Metrics(this, 15020);
metrics.addCustomChart(new SimplePie("weather_provider", () ->
GlobalConstants.weatherConfig.enabled ? GlobalConstants.weatherConfig.provider : "off"
));
metrics.addCustomChart(new SimplePie("thunder_provider", () ->
GlobalConstants.thunderConfig.enabled ? GlobalConstants.thunderConfig.provider : "off"
));
metrics.addCustomChart(new SimplePie("real_time", () ->
GlobalConstants.timeConfig.enabled() ? "on" : "off"
));*/
mStats(2);
DebugLogger.info("ended loading", 1);
}

View file

@ -10,6 +10,7 @@ main: eu.m724.realweather.RealWeatherPlugin
libraries:
- org.java-websocket:Java-WebSocket:1.6.0
- eu.m724:mstats-spigot:0.1.2
commands:
rwadmin: