1
0
mirror of https://e.coding.net/circlecloud/CityBuild.git synced 2024-11-21 10:48:49 +00:00

更新版本添加版本检查...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-11-25 15:52:22 +08:00
parent 6abc21083e
commit 3b45e6ac01
2 changed files with 3 additions and 1 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>cn.CityCraft</groupId> <groupId>cn.CityCraft</groupId>
<artifactId>CityBuild</artifactId> <artifactId>CityBuild</artifactId>
<version>0.0.1-SNAPSHOT</version> <version>1.0</version>
<name>CityBuild</name> <name>CityBuild</name>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>

View File

@ -15,6 +15,7 @@ import org.bukkit.plugin.java.JavaPlugin;
import cn.citycraft.CityBuild.listen.Build; import cn.citycraft.CityBuild.listen.Build;
import cn.citycraft.PluginHelper.config.FileConfig; import cn.citycraft.PluginHelper.config.FileConfig;
import cn.citycraft.PluginHelper.utils.VersionChecker;
public class CityBuild extends JavaPlugin implements CommandExecutor { public class CityBuild extends JavaPlugin implements CommandExecutor {
public FileConfig config; public FileConfig config;
@ -83,6 +84,7 @@ public class CityBuild extends JavaPlugin implements CommandExecutor {
public void onEnable() { public void onEnable() {
Bukkit.getPluginManager().registerEvents(new Build(this), this); Bukkit.getPluginManager().registerEvents(new Build(this), this);
getLogger().info(pluginname + "城市世界建筑保护已加载!"); getLogger().info(pluginname + "城市世界建筑保护已加载!");
new VersionChecker(this);
} }
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")