mirror of
https://e.coding.net/circlecloud/QuickShop.git
synced 2024-11-22 01:58:54 +00:00
修改本地化工具载入为异步 妈妈再也不担心卡服啦。。。
This commit is contained in:
parent
62bfb22bec
commit
00349aecae
5
pom.xml
5
pom.xml
@ -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>&c修复超级工具修改无法保存数据的问题...</update.description>
|
<env.BUILD_NUMBER>DEBUG</env.BUILD_NUMBER>
|
||||||
|
<update.description>&c修改本地化工具载入为异步(&a妈妈再也不担心卡服啦&c)...</update.description>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
|
@ -104,10 +104,13 @@ public class Economy_Vault implements EconomyCore {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean setupEconomy() {
|
private boolean setupEconomy() {
|
||||||
final RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServicesManager().getRegistration(Economy.class);
|
try {
|
||||||
if (economyProvider != null) {
|
final RegisteredServiceProvider<Economy> economyProvider = Bukkit.getServicesManager().getRegistration(Economy.class);
|
||||||
this.vault = (economyProvider.getProvider());
|
if (economyProvider != null) {
|
||||||
|
vault = (economyProvider.getProvider());
|
||||||
|
}
|
||||||
|
} catch (final Exception e) {
|
||||||
}
|
}
|
||||||
return this.vault != null;
|
return vault != null;
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user