修复自定义货币问题

This commit is contained in:
xbaimiao
2024-04-12 20:20:16 +08:00
parent c2d58430ea
commit 8836ec5b66
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -20,7 +20,7 @@ taboolib {
name("xbaimiao") name("xbaimiao")
} }
val bukkitNodes = bukkitNodes as MutableMap<Any, Any> val bukkitNodes = bukkitNodes as MutableMap<Any, Any>
bukkitNodes["update-info"] = "数据库添加缓存 优化性能" bukkitNodes["update-info"] = "修复自定义货币问题"
} }
env { env {
install(NMS_UTIL, UI) install(NMS_UTIL, UI)
+1 -1
View File
@@ -1,2 +1,2 @@
group=com.github.xbaimiao.shoppro group=com.github.xbaimiao.shoppro
version=1.2.7-SNAPSHOT version=1.2.8-SNAPSHOT
@@ -36,8 +36,8 @@ object ShopPro : Plugin(), KtorStat {
info("$userId 感谢您的使用") info("$userId 感谢您的使用")
stat() stat()
} }
ShopManager.load()
DiyCurrency.load() DiyCurrency.load()
ShopManager.load()
VaultImpl.startTask() VaultImpl.startTask()
database = if (config.getBoolean("mysql.enable")) MysqlDatabase(config) else SQLiteDatabase() database = if (config.getBoolean("mysql.enable")) MysqlDatabase(config) else SQLiteDatabase()
@@ -50,8 +50,8 @@ object ShopPro : Plugin(), KtorStat {
fun reload() { fun reload() {
config.reload() config.reload()
ShopManager.shops.clear() ShopManager.shops.clear()
ShopManager.load()
DiyCurrency.load() DiyCurrency.load()
ShopManager.load()
Bukkit.getOnlinePlayers().forEach { Bukkit.getOnlinePlayers().forEach {
database.releasePlayerData(it) database.releasePlayerData(it)