Use mStats
This commit is contained in:
parent
79e85d0c3e
commit
f92328070c
3 changed files with 10 additions and 22 deletions
17
pom.xml
17
pom.xml
|
|
@ -48,12 +48,12 @@
|
|||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.bstats</groupId>
|
||||
<artifactId>bstats-bukkit</artifactId>
|
||||
<version>3.1.0</version>
|
||||
<scope>compile</scope>
|
||||
<groupId>eu.m724</groupId>
|
||||
<artifactId>mstats-spigot</artifactId>
|
||||
<version>0.1.2</version>
|
||||
</dependency>
|
||||
|
||||
|
||||
<dependency>
|
||||
<groupId>eu.m724</groupId>
|
||||
<artifactId>jarupdater</artifactId>
|
||||
|
|
@ -84,17 +84,8 @@
|
|||
<configuration>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
<minimizeJar>true</minimizeJar>
|
||||
<!-- <shadedArtifactAttached>true</shadedArtifactAttached>
|
||||
<shadedClassifierName>full</shadedClassifierName> -->
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>org.bstats</pattern>
|
||||
<shadedPattern>eu.m724.giants</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
<artifactSet>
|
||||
<includes>
|
||||
<include>org.bstats:*</include>
|
||||
<include>eu.m724:jarupdater</include>
|
||||
</includes>
|
||||
</artifactSet>
|
||||
|
|
|
|||
|
|
@ -5,17 +5,15 @@ import eu.m724.giants.configuration.Configuration;
|
|||
import eu.m724.giants.updater.PluginUpdater;
|
||||
import eu.m724.giants.updater.UpdateCommand;
|
||||
import eu.m724.jarupdater.verify.VerificationException;
|
||||
import org.bstats.bukkit.Metrics;
|
||||
import org.bstats.charts.SimplePie;
|
||||
import eu.m724.mstats.MStatsPlugin;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.command.CommandExecutor;
|
||||
import org.bukkit.plugin.java.JavaPlugin;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
||||
public class GiantsPlugin extends JavaPlugin implements CommandExecutor {
|
||||
public class GiantsPlugin extends MStatsPlugin implements CommandExecutor {
|
||||
private final File configFile = new File(getDataFolder(), "config.yml");
|
||||
|
||||
private static Configuration configuration;
|
||||
|
|
@ -60,11 +58,7 @@ public class GiantsPlugin extends JavaPlugin implements CommandExecutor {
|
|||
|
||||
getCommand("giants").setExecutor(new GiantsCommand(this, updateCommand));
|
||||
|
||||
Metrics metrics = new Metrics(this, 14131);
|
||||
metrics.addCustomChart(new SimplePie("jump_mode", () -> String.valueOf(configuration.jumpMode())));
|
||||
metrics.addCustomChart(new SimplePie("jump_condition", () -> String.valueOf(configuration.jumpCondition())));
|
||||
metrics.addCustomChart(new SimplePie("jump_delay", () -> String.valueOf(configuration.jumpDelay())));
|
||||
metrics.addCustomChart(new SimplePie("jump_height", () -> String.valueOf(configuration.jumpHeight())));
|
||||
mStats(3);
|
||||
}
|
||||
|
||||
public static Configuration getConfiguration() {
|
||||
|
|
|
|||
|
|
@ -8,6 +8,9 @@ api-version: 1.16
|
|||
load: STARTUP
|
||||
main: eu.m724.giants.GiantsPlugin
|
||||
|
||||
libraries:
|
||||
- eu.m724:mstats-spigot:0.1.2
|
||||
|
||||
commands:
|
||||
giants:
|
||||
description: Utility command for Giants
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue