1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

修改本地化工具载入为异步 妈妈再也不担心卡服啦。。。

This commit is contained in:
502647092 2015-12-18 08:51:44 +08:00
parent 62bfb22bec
commit 00349aecae
3 changed files with 12 additions and 8 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>org.maxgamer</groupId> <groupId>org.maxgamer</groupId>
<artifactId>QuickShop</artifactId> <artifactId>QuickShop</artifactId>
<version>1.6.5</version> <version>1.6.6</version>
<description>快捷商店重置版本...</description> <description>快捷商店重置版本...</description>
<build> <build>
<finalName>${project.name}</finalName> <finalName>${project.name}</finalName>
@ -54,7 +54,8 @@
</build> </build>
<properties> <properties>
<jenkins.url>http://ci.citycraft.cn:8080</jenkins.url> <jenkins.url>http://ci.citycraft.cn:8080</jenkins.url>
<update.description>&amp;c修复超级工具修改无法保存数据的问题...</update.description> <env.BUILD_NUMBER>DEBUG</env.BUILD_NUMBER>
<update.description>&amp;c修改本地化工具载入为异步(&amp;a妈妈再也不担心卡服啦&amp;c)...</update.description>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
<repositories> <repositories>

View File

@ -104,10 +104,13 @@ public class Economy_Vault implements EconomyCore {
} }
private boolean setupEconomy() { private boolean setupEconomy() {
try {
final RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServicesManager().getRegistration(Economy.class); final RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServicesManager().getRegistration(Economy.class);
if (economyProvider != null) { if (economyProvider != null) {
this.vault = (economyProvider.getProvider()); vault = (economyProvider.getProvider());
} }
return this.vault != null; } catch (final Exception e) {
}
return vault != null;
} }
} }

View File

@ -196,6 +196,7 @@ public class QuickShop extends JavaPlugin {
if (loadEcon() == false) { if (loadEcon() == false) {
return; return;
} }
LocalUtil.init(this);
// Initialize Util // Initialize Util
Util.initialize(); Util.initialize();
// Create the shop manager. // Create the shop manager.
@ -339,7 +340,6 @@ public class QuickShop extends JavaPlugin {
@Override @Override
public void onLoad() { public void onLoad() {
config = new FileConfig(this); config = new FileConfig(this);
LocalUtil.reload();
MsgUtil.init(this); MsgUtil.init(this);
} }
@ -347,6 +347,6 @@ public class QuickShop extends JavaPlugin {
@Override @Override
public void reloadConfig() { public void reloadConfig() {
config.reload(); config.reload();
LocalUtil.reload(); LocalUtil.reload(this);
} }
} }