Bounser / Nascraft

An alternative economy with dynamic prices based on supply and demand.
https://www.spigotmc.org/resources/108216/
MIT License
6 stars 1 forks source link

Bug with written book #6

Open DeDeMeowOuO opened 5 months ago

DeDeMeowOuO commented 5 months ago

When I add a written book in nascraft it works but when I restart server it failed to loading or I set the price too high? because I use the book and make it like futures and stock

DeDeMeowOuO commented 5 months ago

I will paste my error code when I go home thanks!

DeDeMeowOuO commented 5 months ago

And sorry about my grammar if you don't understand what I meant please ask me thank you

Bounser commented 5 months ago

I can't reproduce this bug. Please provide the error

DeDeMeowOuO commented 5 months ago

ok i fix it by accident.the error is cause by null Cat. and other bug is show up qwq

Bounser commented 5 months ago

Can you provide more context on how does the error occur?

DeDeMeowOuO commented 5 months ago
DeDeMeowOuO commented 5 months ago

and can you add this function like this? order and the price by the players thanks image

Bounser commented 5 months ago
  • [Thu 19:59:55 ERROR net.dv8tion.jda.api.requests.RestAction] RestAction queue returned failure: [ErrorResponseException] 50035: Invalid Form Body components[0].components[0].options[11]

    • SELECT_COMPONENT_OPTION_VALUE_DUPLICATED: The specified option value is already used net.dv8tion.jda.api.exceptions.ContextException at Nascraft-1.5.1.jar//net.dv8tion.jda.api.exceptions.ContextException.here(ContextException.java:54) at Nascraft-1.5.1.jar//net.dv8tion.jda.api.requests.Request.(Request.java:77) at Nascraft-1.5.1.jar//net.dv8tion.jda.internal.requests.RestActionImpl.queue(RestActionImpl.java:197) at Nascraft-1.5.1.jar//net.dv8tion.jda.api.requests.RestAction.queue(RestAction.java:572) at Nascraft-1.5.1.jar//me.bounser.nascraft.discord.DiscordBot.lambda$update$1(DiscordBot.java:124) at java.base/java.util.ArrayList.forEach(ArrayList.java:1511) at java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1092) at Nascraft-1.5.1.jar//me.bounser.nascraft.discord.DiscordBot.update(DiscordBot.java:93) at Nascraft-1.5.1.jar//me.bounser.nascraft.managers.TasksManager.lambda$shortTermPricesTask$0(TasksManager.java:82) at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftTask.run(CraftTask.java:101) at org.bukkit.craftbukkit.v1_20_R1.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) this? thank you for help.

Thank you for reporting the bug. I'll look into it and fix it in the next version.

Bounser commented 5 months ago

and can you add this function like this? order and the price by the players thanks image

To make that the plugin should work by letting players create limit and market orders. Currently the plugin is taking a third option, so that's currently not possible. In the future I might add limit orders, and in that case I could add something to display orders. I can add the last trades thing now, though