Skip to content
This repository has been archived by the owner on Mar 8, 2022. It is now read-only.

玩家资金为负时无法交易 #58

Open
timeance opened this issue Jul 11, 2019 · 0 comments
Open

玩家资金为负时无法交易 #58

timeance opened this issue Jul 11, 2019 · 0 comments

Comments

@timeance
Copy link

当玩家资金为负时,任何交易都会失败
这是使用天喵商店时的报错

[10:02:26 WARN]: [HamsterEcoHelper] 交易失败:{seller: "playerA", buyer: "PlayerB", item: "FIREWORK_ROCKET", price: 0.50, tax: 0.03}
[10:02:26 WARN]: [HamsterEcoHelper] 物品JSON:"{id:"minecraft:firework_rocket",Count:1b,tag:{Fireworks:{Flight:3b}}}"
[10:02:26 WARN]: java.lang.RuntimeException: Loan was not permitted
[10:02:26 WARN]: at cat.nyaa.HamsterEcoHelper.utils.EconomyUtil.transaction(EconomyUtil.java:75)
[10:02:26 WARN]: at cat.nyaa.HamsterEcoHelper.market.MarketGUI.clickItem(MarketGUI.java:137)
[10:02:26 WARN]: at cat.nyaa.HamsterEcoHelper.market.MarketGUI.onInventoryClick(MarketGUI.java:40)
[10:02:26 WARN]: at cat.nyaa.HamsterEcoHelper.market.MarketListener.onInventoryClick(MarketListener.java:25)
[10:02:26 WARN]: at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor355.execute(Unknown Source)
[10:02:26 WARN]: at org.bukkit.plugin.EventExecutor.lambda$create$1(EventExecutor.java:69)
[10:02:26 WARN]: at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:76)
[10:02:26 WARN]: at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:66)
[10:02:26 WARN]: at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:520)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.PlayerConnection.a(PlayerConnection.java:2288)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.PacketPlayInWindowClick.a(SourceFile:33)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.PacketPlayInWindowClick.a(SourceFile:10)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.PlayerConnectionUtils.lambda$ensureMainThread$0(PlayerConnectionUtils.java:15)
[10:02:26 WARN]: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[10:02:26 WARN]: at java.util.concurrent.FutureTask.run(FutureTask.java:266)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.SystemUtils.a(SystemUtils.java:108)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.b(MinecraftServer.java:1018)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.DedicatedServer.b(DedicatedServer.java:439)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.a(MinecraftServer.java:940)
[10:02:26 WARN]: at net.minecraft.server.v1_13_R2.MinecraftServer.run(MinecraftServer.java:837)
[10:02:26 WARN]: at java.lang.Thread.run(Thread.java:748)
[10:02:26 WARN]: [HamsterEcoHelper] 回滚现金交易:{player: "PlayerA", price: 0.53, status: "true"}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant