From 7d1e0cf13fa0ca764d116d6e524905b56d537542 Mon Sep 17 00:00:00 2001 From: 502647092 Date: Wed, 6 Jan 2016 19:36:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E4=BD=BF=E7=94=A8=E7=BB=9F=E8=AE=A1...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 502647092 --- pom.xml | 4 ++-- .../java/cn/citycraft/TeleportRandom/TeleportRandom.java | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 60e09fa..ff756c2 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 cn.citycraft TeleportRandom - 1.0 + 1.1 TeleportRandom ${project.name} @@ -54,7 +54,7 @@ http://ci.citycraft.cn:8080 - 更新插件框架... + 添加自动更新和使用统计... UTF-8 diff --git a/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java b/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java index 422d4db..066919c 100644 --- a/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java +++ b/src/main/java/cn/citycraft/TeleportRandom/TeleportRandom.java @@ -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);