1
0
mirror of https://e.coding.net/circlecloud/TeleportRandom.git synced 2024-10-31 07:28:47 +00:00

添加自动更新使用统计...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-01-06 19:36:59 +08:00
parent 16410d8046
commit 7d1e0cf13f
2 changed files with 8 additions and 2 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cn.citycraft</groupId>
<artifactId>TeleportRandom</artifactId>
<version>1.0</version>
<version>1.1</version>
<name>TeleportRandom</name>
<build>
<finalName>${project.name}</finalName>
@ -54,7 +54,7 @@
</build>
<properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>更新插件框架...</update.description>
<update.description>添加自动更新和使用统计...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<repositories>

View File

@ -13,6 +13,7 @@ import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import cn.citycraft.PluginHelper.config.FileConfig;
import cn.citycraft.PluginHelper.utils.VersionChecker;
public class TeleportRandom extends JavaPlugin implements CommandExecutor {
public FileConfig config;
@ -53,6 +54,11 @@ public class TeleportRandom extends JavaPlugin implements CommandExecutor {
return false;
}
@Override
public void onEnable() {
new VersionChecker(this);
}
@Override
public void onLoad() {
config = new FileConfig(this);