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