Add mStats
This commit is contained in:
parent
7927d8ba3e
commit
d55939c116
3 changed files with 9 additions and 12 deletions
5
pom.xml
5
pom.xml
|
|
@ -53,6 +53,11 @@
|
||||||
<artifactId>jarupdater</artifactId>
|
<artifactId>jarupdater</artifactId>
|
||||||
<version>0.1.8</version>
|
<version>0.1.8</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>eu.m724</groupId>
|
||||||
|
<artifactId>mstats-spigot</artifactId>
|
||||||
|
<version>0.1.2</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import java.io.InputStreamReader;
|
||||||
import java.nio.charset.StandardCharsets;
|
import java.nio.charset.StandardCharsets;
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
|
import eu.m724.mstats.MStatsPlugin;
|
||||||
import eu.m724.wtapi.provider.exception.NoSuchProviderException;
|
import eu.m724.wtapi.provider.exception.NoSuchProviderException;
|
||||||
import org.bukkit.configuration.file.YamlConfiguration;
|
import org.bukkit.configuration.file.YamlConfiguration;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
|
||||||
|
|
||||||
import eu.m724.realweather.commands.AdminCommand;
|
import eu.m724.realweather.commands.AdminCommand;
|
||||||
import eu.m724.realweather.commands.GeoCommand;
|
import eu.m724.realweather.commands.GeoCommand;
|
||||||
|
|
@ -30,7 +30,7 @@ import eu.m724.realweather.weather.WeatherMaster;
|
||||||
import eu.m724.wtapi.provider.exception.ProviderException;
|
import eu.m724.wtapi.provider.exception.ProviderException;
|
||||||
|
|
||||||
// TODO unmess this too
|
// TODO unmess this too
|
||||||
public class RealWeatherPlugin extends JavaPlugin {
|
public class RealWeatherPlugin extends MStatsPlugin {
|
||||||
private WeatherMaster weatherMaster;
|
private WeatherMaster weatherMaster;
|
||||||
private ThunderMaster thunderMaster;
|
private ThunderMaster thunderMaster;
|
||||||
private TimeMaster timeMaster;
|
private TimeMaster timeMaster;
|
||||||
|
|
@ -136,16 +136,7 @@ public class RealWeatherPlugin extends JavaPlugin {
|
||||||
getCommand("localweather").setExecutor(new LocalWeatherCommand());
|
getCommand("localweather").setExecutor(new LocalWeatherCommand());
|
||||||
}
|
}
|
||||||
|
|
||||||
/*Metrics metrics = new Metrics(this, 15020);
|
mStats(2);
|
||||||
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"
|
|
||||||
));*/
|
|
||||||
|
|
||||||
DebugLogger.info("ended loading", 1);
|
DebugLogger.info("ended loading", 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ main: eu.m724.realweather.RealWeatherPlugin
|
||||||
|
|
||||||
libraries:
|
libraries:
|
||||||
- org.java-websocket:Java-WebSocket:1.6.0
|
- org.java-websocket:Java-WebSocket:1.6.0
|
||||||
|
- eu.m724:mstats-spigot:0.1.2
|
||||||
|
|
||||||
commands:
|
commands:
|
||||||
rwadmin:
|
rwadmin:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue