修复提示信息错误
This commit is contained in:
+1
-1
@@ -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"] = "限制商店购买点击频率为200ms一次(防止连点器)"
|
bukkitNodes["update-info"] = "修复提示信息错误"
|
||||||
}
|
}
|
||||||
env {
|
env {
|
||||||
install(NMS_UTIL, UI)
|
install(NMS_UTIL, UI)
|
||||||
|
|||||||
+1
-1
@@ -1,2 +1,2 @@
|
|||||||
group=com.github.xbaimiao.shoppro
|
group=com.github.xbaimiao.shoppro
|
||||||
version=1.3.2-SNAPSHOT
|
version=1.3.3-SNAPSHOT
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ class ShopImpl(private val configuration: Configuration) : Shop() {
|
|||||||
Bukkit.getPluginManager().callEvent(ShopProBuyEvent(item, amount, player))
|
Bukkit.getPluginManager().callEvent(ShopProBuyEvent(item, amount, player))
|
||||||
ShopPro.database.addAmount(item, player, LimitData(amount.toLong(), 0L))
|
ShopPro.database.addAmount(item, player, LimitData(amount.toLong(), 0L))
|
||||||
item.exeCommands(player, amount)
|
item.exeCommands(player, amount)
|
||||||
player.sendLang("buy-item", amount, item.name, item.price * amount)
|
player.sendLang("buy-item", amount, item.name, String.format("%.2f", item.price * amount))
|
||||||
ShopPro.config.getString("the_voice_of_success")?.let {
|
ShopPro.config.getString("the_voice_of_success")?.let {
|
||||||
player.playSound(player.location, it, 100f, 1f)
|
player.playSound(player.location, it, 100f, 1f)
|
||||||
}
|
}
|
||||||
@@ -272,7 +272,7 @@ class ShopImpl(private val configuration: Configuration) : Shop() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
Bukkit.getPluginManager().callEvent(ShopProSellEvent(shopItem, amount, player))
|
Bukkit.getPluginManager().callEvent(ShopProSellEvent(shopItem, amount, player))
|
||||||
player.sendLang("sell-item", amount, shopItem.name, shopItem.price * amount)
|
player.sendLang("sell-item", amount, shopItem.name, String.format("%.2f", shopItem.price * amount))
|
||||||
ShopPro.config.getString("the_voice_of_success")?.let {
|
ShopPro.config.getString("the_voice_of_success")?.let {
|
||||||
player.playSound(player.location, it, 100f, 1f)
|
player.playSound(player.location, it, 100f, 1f)
|
||||||
}
|
}
|
||||||
@@ -317,7 +317,7 @@ class ShopImpl(private val configuration: Configuration) : Shop() {
|
|||||||
item.currency.giveMoney(player, item.price * amount)
|
item.currency.giveMoney(player, item.price * amount)
|
||||||
Bukkit.getPluginManager().callEvent(ShopProSellEvent(item, amount, player))
|
Bukkit.getPluginManager().callEvent(ShopProSellEvent(item, amount, player))
|
||||||
ShopPro.database.addAmount(item, player, LimitData(0L, amount.toLong()))
|
ShopPro.database.addAmount(item, player, LimitData(0L, amount.toLong()))
|
||||||
player.sendLang("sell-item", amount, item.name, item.price * amount)
|
player.sendLang("sell-item", amount, item.name, String.format("%.2f", item.price * amount))
|
||||||
ShopPro.config.getString("the_voice_of_success")?.let {
|
ShopPro.config.getString("the_voice_of_success")?.let {
|
||||||
player.playSound(player.location, it, 100f, 1f)
|
player.playSound(player.location, it, 100f, 1f)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user