diff --git a/pom.xml b/pom.xml
index 2aa514c..32f4d9f 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
org.maxgamer
QuickShop
- 1.6.5
+ 1.6.6
快捷商店重置版本...
${project.name}
@@ -54,7 +54,8 @@
http://ci.citycraft.cn:8080
- &c修复超级工具修改无法保存数据的问题...
+ DEBUG
+ &c修改本地化工具载入为异步(&a妈妈再也不担心卡服啦&c)...
UTF-8
diff --git a/src/main/java/org/maxgamer/QuickShop/Economy/Economy_Vault.java b/src/main/java/org/maxgamer/QuickShop/Economy/Economy_Vault.java
index a4cf1b2..cde6244 100644
--- a/src/main/java/org/maxgamer/QuickShop/Economy/Economy_Vault.java
+++ b/src/main/java/org/maxgamer/QuickShop/Economy/Economy_Vault.java
@@ -104,10 +104,13 @@ public class Economy_Vault implements EconomyCore {
}
private boolean setupEconomy() {
- final RegisteredServiceProvider economyProvider = Bukkit.getServicesManager().getRegistration(Economy.class);
- if (economyProvider != null) {
- this.vault = (economyProvider.getProvider());
+ try {
+ final RegisteredServiceProvider economyProvider = Bukkit.getServicesManager().getRegistration(Economy.class);
+ if (economyProvider != null) {
+ vault = (economyProvider.getProvider());
+ }
+ } catch (final Exception e) {
}
- return this.vault != null;
+ return vault != null;
}
}
\ No newline at end of file
diff --git a/src/main/java/org/maxgamer/QuickShop/QuickShop.java b/src/main/java/org/maxgamer/QuickShop/QuickShop.java
index 722b03d..37bacf3 100644
--- a/src/main/java/org/maxgamer/QuickShop/QuickShop.java
+++ b/src/main/java/org/maxgamer/QuickShop/QuickShop.java
@@ -196,6 +196,7 @@ public class QuickShop extends JavaPlugin {
if (loadEcon() == false) {
return;
}
+ LocalUtil.init(this);
// Initialize Util
Util.initialize();
// Create the shop manager.
@@ -339,7 +340,6 @@ public class QuickShop extends JavaPlugin {
@Override
public void onLoad() {
config = new FileConfig(this);
- LocalUtil.reload();
MsgUtil.init(this);
}
@@ -347,6 +347,6 @@ public class QuickShop extends JavaPlugin {
@Override
public void reloadConfig() {
config.reload();
- LocalUtil.reload();
+ LocalUtil.reload(this);
}
}
\ No newline at end of file