1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2024-10-31 22:38:48 +00:00

move static class init...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2015-09-29 14:09:49 +08:00
parent 70e7e29faa
commit 52db97df0a

View File

@ -354,7 +354,6 @@ public class ResidenceMain extends JavaPlugin {
public void onEnable() {
try {
instance = this;
Residence.init(this);
this.getLogger().info("Bukkit 版本: " + this.getServer().getBukkitVersion());
bukkitver = Float.parseFloat(this.getServer().getBukkitVersion().substring(0, 3));
init = false;
@ -520,6 +519,12 @@ public class ResidenceMain extends JavaPlugin {
ex.printStackTrace();
}
backup = new DataBackup(this);
try {
Residence.init(this);
} catch (final Exception e) {
this.getLogger().warning("领地插件旧接口载入失败!");
this.getLogger().warning("可能会导致部分依赖于此插件的插件无法运行!");
}
new VersionChecker(this);
}