mirror of
https://e.coding.net/circlecloud/Residence.git
synced 2025-11-24 21:46:16 +00:00
@@ -408,7 +408,6 @@ public class Residence extends JavaPlugin {
|
||||
}
|
||||
economy = null;
|
||||
if (this.getConfig().getBoolean("Global.EnableEconomy", false)) {
|
||||
this.getLogger().info("启用经济系统...");
|
||||
if (gmanager.getPermissionsPlugin() instanceof ResidenceVaultAdapter) {
|
||||
final ResidenceVaultAdapter vault = (ResidenceVaultAdapter) gmanager.getPermissionsPlugin();
|
||||
if (vault.economyOK()) {
|
||||
@@ -423,7 +422,7 @@ public class Residence extends JavaPlugin {
|
||||
this.loadEssentialsEconomy();
|
||||
}
|
||||
if (economy == null) {
|
||||
this.getLogger().warning("未找到经济系统...");
|
||||
this.getLogger().warning("经济系统已启用,但是未找到经济插件...");
|
||||
}
|
||||
}
|
||||
try {
|
||||
@@ -457,11 +456,10 @@ public class Residence extends JavaPlugin {
|
||||
if (wep != null) {
|
||||
smanager = new WorldEditSelectionManager(this);
|
||||
useWorldEdit = true;
|
||||
this.getLogger().info("发现 WorldEdit");
|
||||
this.getLogger().info("发现 WorldEdit 已启用相关支持...");
|
||||
} else {
|
||||
smanager = new SelectionManager(this);
|
||||
useWorldEdit = false;
|
||||
this.getLogger().warning("WorldEdit 未找到!");
|
||||
}
|
||||
blistener = new ResidenceBlockListener(this);
|
||||
plistener = new ResidencePlayerListener(this);
|
||||
@@ -473,7 +471,6 @@ public class Residence extends JavaPlugin {
|
||||
pm.registerEvents(plistener1_8, this);
|
||||
}
|
||||
pm.registerEvents(elistener, this);
|
||||
|
||||
firstenable = false;
|
||||
} else {
|
||||
plistener = new ResidencePlayerListener(this);
|
||||
@@ -482,8 +479,8 @@ public class Residence extends JavaPlugin {
|
||||
fmanager = new FlagManager(this);
|
||||
fmanager.init();
|
||||
|
||||
this.getLogger().info("开始加载领地补丁...");
|
||||
pm.registerEvents(new ResidenceBugFix(this), this);
|
||||
this.getLogger().info("刷甘蔗漏洞补丁已加载...");
|
||||
|
||||
taskmanager.add(this.getServer().getScheduler().runTaskTimer(this, new HealTask(this), 20, 20));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user