update PluginHelper...

This commit is contained in:
502647092 2015-09-15 09:26:31 +08:00
parent 0c76f5b5bf
commit f11721dbb1
2 changed files with 32 additions and 3 deletions

21
pom.xml
View File

@ -33,8 +33,19 @@
<artifactSet>
<includes>
<include>cn.citycraft:PluginHelper</include>
<include>org.mcstats.*:*</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.mcstats</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}.mcstats</shadedPattern>
</relocation>
<relocation>
<pattern>cn.citycraft.PluginHelper</pattern>
<shadedPattern>${project.groupId}.${project.artifactId}</shadedPattern>
</relocation>
</relocations>
</configuration>
<executions>
<execution>
@ -56,6 +67,10 @@
<id>citycraft-repo</id>
<url>http://ci.citycraft.cn:8800/jenkins/plugin/repository/everything/</url>
</repository>
<repository>
<id>Plugin Metrics</id>
<url>http://repo.mcstats.org/content/repositories/public</url>
</repository>
</repositories>
<dependencies>
<dependency>
@ -70,6 +85,12 @@
<type>jar</type>
<version>1.0</version>
</dependency>
<dependency>
<groupId>org.mcstats.bukkit</groupId>
<artifactId>metrics</artifactId>
<version>R8-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@ -3,12 +3,15 @@
*/
package cn.citycraft.Yum;
import org.bukkit.plugin.java.JavaPlugin;
import java.io.IOException;
import org.bukkit.plugin.java.JavaPlugin;
import org.mcstats.Metrics;
import cn.citycraft.PluginHelper.config.FileConfig;
import cn.citycraft.PluginHelper.utils.VersionChecker;
import cn.citycraft.Yum.commands.HandlerCommand;
import cn.citycraft.Yum.manager.YumManager;
import cn.citycraft.config.FileConfig;
import cn.citycraft.utils.VersionChecker;
/**
* MC插件仓库
@ -33,6 +36,11 @@ public class Yum extends JavaPlugin {
yumgr = new YumManager(this);
YumManager.repo.jsonToCache(config);
new VersionChecker(this);
try {
Metrics metrics = new Metrics(this);
metrics.start();
} catch (IOException e) {
}
}
@Override