add bstats
This commit is contained in:
parent
27b7576e7b
commit
ea708b3a55
2 changed files with 24 additions and 2 deletions
21
pom.xml
21
pom.xml
|
@ -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>
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
@ -138,7 +139,9 @@ 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue