Comments (14)
from nascraft.
This is indeed Nascraft's fault (probably). However, I am unable to reproduce this error. Could you please share your configuration file?
from nascraft.
# Nascraft config.
# Verifies if the necessary layout is present (And in its correct version), and if not, places it in AdvancedGUI's layout folder.
AutoResourcesInjection: true
Items_quoted:
Categories:
# Reference of the category. Categories are displayed in the main menu.
1:
# Display-name of the category. (Can't be very long)
name: "Stonage"
# Items of the category. A MAXIMUM amount of SIX (6) items are allowed per category.
items:
# Material of the item.
cobblestone:
# INITIAL price. This value will be ignored once the market starts developing its own valuations.
price: 0.012
# Display-name of the item. If not stated, the material (With the first letter capitalized and without low bars) will be displayed.
alias: "Cobble"
# (OPTIONAL) Specify the trend of the item fluctuations (Only if random oscillations is enabled)
# Available values: FLAT, BEAR1, BEAR2, BEAR3, BULL1, BULL2, BULL3
trend: "BULL1"
# child items. The price of these items will be determined by his parent item.
child:
cobblestone_slab:
# To make a cobblestone slab we only need half of a cobblestone block, so the price of the slab is half the price of the cobblestone.
# Result: (Price cobblestone)*0.5 - Hence, the initial price will be 0.6 for one slab.
multiplier: 0.5
cobblestone_stairs:
# To make a cobblestone stair we require 6 of cobblestone, while we only get 4 stairs. Then, the price will be 6/4 = 3/2 = 1.5
# Keep in mind that this logic is not necessary, as you could say, if you want, that a stair costs x10 the price of cobblestone,
# but that not only makes no sense, it would probably allow people to take advantage of these overvaluations.
multiplier: 1.5
cobblestone_wall:
# Spends 6, gets 6. 6/6 = 1/1 = 1
multiplier: 1
stone:
price: 0.015
child:
stone_stairs:
multiplier: 1.5
stone_slab:
multiplier: 0.5
stone_pressure_plate:
multiplier: 2
stone_button:
multiplier: 1
cobbled_deepslate:
price: 0.007
child:
cobbled_deepslate_stairs:
multiplier: 1.5
cobbled_deepslate_slab:
multiplier: 0.5
cobbled_deepslate_wall:
multiplier: 1
andesite:
price: 0.112
child:
andesite_stairs:
multiplier: 1.5
andesite_slab:
multiplier: 0.5
andesite_wall:
multiplier: 1
polished_andesite:
multiplier: 1.05
diorite:
price: 0.1
child:
diorite_stairs:
multiplier: 1.5
diorite_slab:
multiplier: 0.5
diorite_wall:
multiplier: 1
polished_diorite:
multiplier: 1.05
granite:
price: 0.5
child:
granite_stairs:
multiplier: 1.5
granite_slab:
multiplier: 0.5
granite_wall:
multiplier: 1
polished_granite:
multiplier: 1.05
# Another category.
2:
name: "Tech"
items:
redstone:
price: 0.2
child:
redstone_block:
multiplier: 9
redstone_torch:
price: 0.3
repeater:
price: 0.6
comparator:
price: 1.0
piston:
price: 2
observer:
price: 3
3:
name: "In the woods"
items:
oak_log:
price: 0.35
child:
oak_planks:
multiplier: 0.025
oak_stairs:
multiplier: 0.0375
oak_slab:
multiplier: 0.0125
stick:
multiplier: 0.00625
birch_log:
price: 0.35
child:
birch_planks:
multiplier: 0.025
birch_stairs:
multiplier: 0.0375
birch_slab:
multiplier: 0.0125
stick:
multiplier: 0.00625
dark_oak_log:
price: 2
child:
dark_oak_planks:
multiplier: 0.025
dark_oak_stairs:
multiplier: 0.0375
dark_oak_slab:
multiplier: 0.0125
acacia_log:
price: 1.75
child:
acacia_planks:
multiplier: 0.025
acacia_stairs:
multiplier: 0.0375
acacia_slab:
multiplier: 0.0125
4:
name: "Valuables"
items:
diamond:
price: 10
emerald:
price: 5
raw_gold:
price: 2
5:
name: "Utils"
items:
coal:
price: 0.4
child:
charcoal:
multiplier: 1
leather:
price: 1
6:
name: "Ingots"
items:
iron_ingot:
price: 0.4
copper_ingot:
price: 0.3
gold_ingot:
price: 1
netherite_ingot:
price: 50
7:
name: "Food"
items:
cooked_porkchop:
price: 0.75
child:
cooked_mutton:
multiplier: 1
cooked_beef:
multiplier: 1.1
bread:
price: 0.5
child:
carrot:
multiplier: 1
beetroot:
multiplier: 1
apple:
price: 0.25
glow_berries:
price: 0.1
Price_options:
# Limit the precision of prices. In general, it is not recommended changing it.
decimal_limit: 3
# Set limits on how low and high prices can be.
limits:
low: 0.05
high: 99999
# With random oscillation enabled prices will vary in time.
random_oscillation:
enabled: true
# Specify the general trend of the market (Only applied to items without a specified trend)
# Available values: FLAT, BEAR1, BEAR2, BEAR3, BULL1, BULL2, BULL3
market_trend: FLAT
Market_control:
# Although the taxation gets separated in both sell and buy actions, the total tax paid is the same no matter how you split it:
# The spread is determined by the deviation in both actions. In the default case: 3% + 2% -> 5% of spread.
# To avoid strengthening the underground economy try to keep this value as low as possible,
# as a heavy taxation can induce players to trade with each other directly, eliminating intermediaries,
# reducing the collected money from taxes and making the market less efficient.
taxation:
# 3% taxation when players sell items.
sell: 0.03
# 2% taxation when players buy items.
buy: 0.02
# Change the trend of prices in-game. Keep in mind that the trend will last until the next restart.
# Command: /nascraft force <TREND> - Where TREND can be: flat, bear1, bear2, bear3, crash, bull1, bull2, bull3, bullran
# -- BE CAUTIOUS WHILE USING, MIGHT HAVE A BIG IMPACT --
force_command: false
# Must players have the permission nascraft.market to operate directly with commands?
market_permission: true
Lang:
# Currency to use next to prices.
currency: "₪"
# Main title.
title: "Markets"
# Available placeholders: [AMOUNT], [MATERIAL], [WORTH]
buy_message: "&7You just bought &d[AMOUNT] &7x &d[MATERIAL] &7worth &6[WORTH]"
sell_message: "&7You just sold &d[AMOUNT] &7x &d[MATERIAL] &7worth &6[WORTH]"
# More text:
topmovers: "Top Movers"
subtop: "in the last 30 min"
buy: "Buy"
sell: "Sell"
price: "Price:"
amount_selection: "Select amount:"
trend: "Trend:"
from nascraft.
Also using vault (latest as of 4/26/23) and EssentialsX latest development build (2.20.0 67) for the econ plugin if you needed that to attempt to reproduce.
from nascraft.
Looks like the old configuration, have you tried with the latest version of the plugin and regenerating the config?
from nascraft.
[23:50:28 ERROR]: Could not pass event GuiInteractionBeginEvent to Nascraft v1.2.3
2023-05-13T03:50:28.453341726Z java.lang.NumberFormatException: Infinite or NaN
2023-05-13T03:50:28.453396864Z at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
2023-05-13T03:50:28.453467791Z at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
2023-05-13T03:50:28.453521299Z at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:28.453563986Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:28.453611850Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:28.453656590Z at me.bounser.nascraft.advancedgui.LayoutModifier.onInteractionStart(LayoutModifier.java:134) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:28.453730512Z at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor465.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:50:28.453787819Z at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:50:28.453918527Z at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.453948342Z at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.454082457Z at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:50:28.454197375Z at me.leoko.advancedgui.utils.GuiInstance.startInteraction(GuiInstance.java:113) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:50:28.454227169Z at me.leoko.advancedgui.utils.GuiWallInstance.startInteraction(GuiWallInstance.java:235) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:50:28.454318730Z at me.leoko.advancedgui.listener.CheckListener.lambda$checkWallGUIInstances$3(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:?]
2023-05-13T03:50:28.454562880Z at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
2023-05-13T03:50:28.454680728Z at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1707) ~[?:?]
2023-05-13T03:50:28.454927316Z at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
2023-05-13T03:50:28.455176079Z at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:?]
2023-05-13T03:50:28.455324567Z at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
2023-05-13T03:50:28.455697270Z at me.leoko.advancedgui.listener.CheckListener.checkWallGUIInstances(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:50:28.455823065Z at me.leoko.advancedgui.listener.CheckListener.onMove(CheckListener.java:26) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:50:28.456091492Z at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor351.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
2023-05-13T03:50:28.456514221Z at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.456656483Z at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:50:28.457088133Z at net.minecraft.server.network.ServerGamePacketListenerImpl.handleMovePlayer(ServerGamePacketListenerImpl.java:1604) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.handle(ServerboundMovePlayerPacket.java:29) ~[?:?]
2023-05-13T03:50:28.457574854Z at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos.handle(ServerboundMovePlayerPacket.java:66) ~[?:?]
2023-05-13T03:50:28.457747776Z at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
2023-05-13T03:50:28.457951502Z at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1342) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.458066474Z at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.458116427Z at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
2023-05-13T03:50:28.458165998Z at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1319) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.458443532Z at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1312) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1389) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1174) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:28.458579451Z at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[23:50:33 WARN]: [Nascraft] Plugin Nascraft v1.2.3 generated an exception while executing task 79
2023-05-13T03:50:33.147663928Z java.lang.NumberFormatException: Infinite or NaN
2023-05-13T03:50:33.147696040Z at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
2023-05-13T03:50:33.147724953Z at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
2023-05-13T03:50:33.147752021Z at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:33.147769569Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:33.147785763Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:33.147801678Z at me.bounser.nascraft.market.managers.TasksManager.lambda$shortTermPricesTask$0(TasksManager.java:48) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:50:33.147817592Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:33.147833456Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:50:33.147853241Z at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
2023-05-13T03:50:33.147921327Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
2023-05-13T03:50:33.147944546Z at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[23:52:47 INFO]: <[CG] LargoUsagi> ------------------------
[23:52:51 INFO]: LargoUsagi issued server command: /nascraft info
[23:52:53 ERROR]: Could not pass event GuiInteractionBeginEvent to Nascraft v1.2.3
java.lang.NumberFormatException: Infinite or NaN
at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.onInteractionStart(LayoutModifier.java:134) ~[Nascraft-1.2.3.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor465.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at me.leoko.advancedgui.utils.GuiInstance.startInteraction(GuiInstance.java:113) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.GuiWallInstance.startInteraction(GuiWallInstance.java:235) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.listener.CheckListener.lambda$checkWallGUIInstances$3(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1707) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:?]
at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:?]
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
at me.leoko.advancedgui.listener.CheckListener.checkWallGUIInstances(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.listener.CheckListener.onMove(CheckListener.java:26) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor351.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:52:53.665860612Z at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleMovePlayer(ServerGamePacketListenerImpl.java:1604) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.handle(ServerboundMovePlayerPacket.java:29) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos.handle(ServerboundMovePlayerPacket.java:66) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:52:53.666154039Z at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1342) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1319) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:52:53.666366522Z at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1312) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1389) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1174) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-527]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[23:53:28 ERROR]: Could not pass event GuiInteractionBeginEvent to Nascraft v1.2.3
2023-05-13T03:53:28.567041973Z java.lang.NumberFormatException: Infinite or NaN
at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
2023-05-13T03:53:28.567232320Z at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:28.567332195Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:28.567381109Z at me.bounser.nascraft.advancedgui.LayoutModifier.onInteractionStart(LayoutModifier.java:134) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:28.567433193Z at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor465.execute(Unknown Source) ~[?:?]
2023-05-13T03:53:28.567483594Z at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:53:28.567523604Z at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
2023-05-13T03:53:28.567568851Z at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.567665452Z at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.567711030Z at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:53:28.567762601Z at me.leoko.advancedgui.utils.GuiInstance.startInteraction(GuiInstance.java:113) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:53:28.567810108Z at me.leoko.advancedgui.utils.GuiWallInstance.startInteraction(GuiWallInstance.java:235) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:53:28.567854689Z at me.leoko.advancedgui.listener.CheckListener.lambda$checkWallGUIInstances$3(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:53:28.567898209Z at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:?]
2023-05-13T03:53:28.567942493Z at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
2023-05-13T03:53:28.567988324Z at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1707) ~[?:?]
2023-05-13T03:53:28.568082935Z at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
2023-05-13T03:53:28.568144679Z at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
2023-05-13T03:53:28.568195077Z at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:?]
2023-05-13T03:53:28.568258681Z at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:?]
2023-05-13T03:53:28.568285538Z at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
2023-05-13T03:53:28.568312198Z at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
2023-05-13T03:53:28.568338932Z at me.leoko.adv
ancedgui.listener.CheckListener.checkWallGUIInstances(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:53:28.568391010Z at me.leoko.advancedgui.listener.CheckListener.onMove(CheckListener.java:26) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T03:53:28.568418393Z at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor351.execute(Unknown Source) ~[?:?]
2023-05-13T03:53:28.568444853Z at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:53:28.568471488Z at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
2023-05-13T03:53:28.568498068Z at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:53:28.568524378Z at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.568551135Z at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.568577535Z at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T03:53:28.568605235Z at net.minecraft.server.network.ServerGamePacketListenerImpl.handleMovePlayer(ServerGamePacketListenerImpl.java:1604) ~[?:?]
2023-05-13T03:53:28.568670093Z at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.handle(ServerboundMovePlayerPacket.java:29) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$Pos.handle(ServerboundMovePlayerPacket.java:66) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
2023-05-13T03:53:28.568832886Z at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1342) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.568938700Z at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
2023-05-13T03:53:28.568997191Z at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1319) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1312) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1389) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.569103222Z at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1174) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T03:53:28.569156487Z at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[23:53:33 WARN]: [Nascraft] Plugin Nascraft v1.2.3 generated an exception while executing task 79
java.lang.NumberFormatException: Infinite or NaN
at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:33.058534688Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:33.058566549Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:33.058597826Z at me.bounser.nascraft.market.managers.TasksManager.lambda$shortTermPricesTask$0(TasksManager.java:48) ~[Nascraft-1.2.3.jar:?]
2023-05-13T03:53:33.058629376Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.4.jar:git-Paper-527]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
Updated my config to this
# Nascraft config - 1.2.1
# Verifies if the necessary layout is present (And in its correct version), and if not, places it in AdvancedGUI's layout folder.
AutoResourcesInjection: true
Items_quoted:
Categories:
# Reference of the category. Categories are displayed in the main menu.
1:
# Display name of the category (cannot be very long).
name: "Stone age"
# Items within the category. A maximum of six (6) items are allowed per category.
items:
# Material of the item.
cobblestone:
# OPTIONAL: Display name of the item. If not specified, the material (with the first letter capitalized and without underscores) will be displayed.
alias: "Cobble"
# REQUIRED: INITIAL price. This value will be disregarded once the market begins to establish its own valuations.
initial_price: 0.012
# OPTIONAL: You can have a support level, a resistance level, or both for each item.
# In this example, the item will fluctuate randomly between 0,3 - 2 and will try to go again to this range
# when the price deviates due to player actions.
support: 0.8
resistance: 2
# OPTIONAL: The elasticity of an item determines the degree of deviation caused by player movements.
elasticity: 0.53
# OPTIONAL: The intensity of the noise determines the magnitude of the random fluctuations.
noise_intensity: 1.4
# Child items. The price of these items will be determined by their parent item.
child:
cobblestone_slab:
# To make a cobblestone slab we only need half of a cobblestone block, so the price of the slab is half the price of the cobblestone.
# Therefore, the initial price will be 0.5 times the price of cobblestone, resulting in 0.6 for one slab in this example.
multiplier: 0.5
cobblestone_stairs:
# To make a cobblestone stair, we require six cobblestones, but we only get four stairs.
# Therefore, the price will be 6/4 = 3/2 = 1.5 times the price of cobblestone.
#
# NOTE: Keep in mind that this logic is not necessary, as you could choose to set the price of a stair as ten times the price of cobblestone.
# However, this would not make sense and would likely allow people to take advantage of the overvaluation.
multiplier: 1.5
cobblestone_wall:
# Spends 6, gets 6. Therefore, the ratio is 6/6 = 1/1 = 1.
multiplier: 1
stone:
price: 0.015
child:
stone_stairs:
multiplier: 1.5
stone_slab:
multiplier: 0.5
stone_pressure_plate:
multiplier: 2
stone_button:
multiplier: 1
cobbled_deepslate:
price: 0.007
child:
cobbled_deepslate_stairs:
multiplier: 1.5
cobbled_deepslate_slab:
multiplier: 0.5
cobbled_deepslate_wall:
multiplier: 1
andesite:
price: 0.112
child:
andesite_stairs:
multiplier: 1.5
andesite_slab:
multiplier: 0.5
andesite_wall:
multiplier: 1
polished_andesite:
multiplier: 1.05
diorite:
price: 0.1
child:
diorite_stairs:
multiplier: 1.5
diorite_slab:
multiplier: 0.5
diorite_wall:
multiplier: 1
polished_diorite:
multiplier: 1.05
granite:
price: 0.5
child:
granite_stairs:
multiplier: 1.5
granite_slab:
multiplier: 0.5
granite_wall:
multiplier: 1
polished_granite:
multiplier: 1.05
# Another category.
2:
name: "Tech"
items:
redstone:
price: 0.2
child:
redstone_block:
multiplier: 9
redstone_torch:
price: 0.3
repeater:
price: 0.6
comparator:
price: 1.0
piston:
price: 2
observer:
price: 3
3:
name: "In the woods"
items:
oak_log:
price: 0.35
child:
oak_planks:
multiplier: 0.025
oak_stairs:
multiplier: 0.0375
oak_slab:
multiplier: 0.0125
stick:
multiplier: 0.00625
birch_log:
price: 0.35
child:
birch_planks:
multiplier: 0.025
birch_stairs:
multiplier: 0.0375
birch_slab:
multiplier: 0.0125
stick:
multiplier: 0.00625
dark_oak_log:
price: 2
child:
dark_oak_planks:
multiplier: 0.025
dark_oak_stairs:
multiplier: 0.0375
dark_oak_slab:
multiplier: 0.0125
acacia_log:
price: 1.75
child:
acacia_planks:
multiplier: 0.025
acacia_stairs:
multiplier: 0.0375
acacia_slab:
multiplier: 0.0125
4:
name: "Valuables"
items:
diamond:
price: 10
emerald:
price: 5
raw_gold:
price: 2
5:
name: "Utils"
items:
coal:
price: 0.4
child:
charcoal:
multiplier: 1
leather:
price: 1
6:
name: "Ingots"
items:
iron_ingot:
price: 0.4
copper_ingot:
price: 0.3
gold_ingot:
price: 1
netherite_ingot:
price: 50
7:
name: "Food"
items:
cooked_porkchop:
price: 0.75
child:
cooked_mutton:
multiplier: 1
cooked_beef:
multiplier: 1.1
bread:
price: 0.5
child:
carrot:
multiplier: 1
beetroot:
multiplier: 1
apple:
price: 0.25
glow_berries:
price: 0.1
Price_options:
# Set limits on the minimum and maximum prices.
limits:
low: 0.001
high: 99999
# With noise enabled, prices will vary over time in a pseudo-random manner.
noise:
enabled: true
Market_control:
# Although taxation is separated for buying and selling actions separately, the total tax paid is the same regardless of how it is split
# The spread is determined by the deviation in both actions. In the default case, it is 6% for selling and 4% for buying, resulting in a total spread of 10%.
# To avoid strengthening the underground economy, try to keep the taxation as low as possible.
# Heavy taxation can encourage players to trade with each other directly, bypassing intermediaries,
# and reducing the amount of money collected from taxes and making the market less efficient.
taxation:
# 6% taxation when players sell items.
sell: 0.06
# 4% taxation when players buy items.
buy: 0.04
# Do players need the permission "nascraft.market" to operate directly with commands?
market_permission: true
Lang:
# Sell message:
sellmsg: "You are going to sell [MATERIAL] for an approximate amount of [WORTH]\nWrite "
# Specify the currency to be used next to prices.
currency: "₪"
# LAYOUT TEXTS:
# Main title.
title: "Item Market"
# Available placeholders: [AMOUNT], [MATERIAL], [WORTH]
buy_message: "&7You just bought &d[AMOUNT] &7x &d[MATERIAL] &7worth &6[WORTH]"
sell_message: "&7You just sold &d[AMOUNT] &7x &d[MATERIAL] &7worth &6[WORTH]"
# More text:
topmovers: "Top Movers"
subtop: "in the last 30 min"
buy: "Buy"
sell: "Sell"
price: "Price:"
amount_selection: "Select amount:"
trend: "Trend:"
from nascraft.
I copied over my settings from a config generated from 1.2.3 in the prior comment.
Do I also need to delete the price history?
from nascraft.
There are two major errors in the configuration. Firstly, "price" has been replaced by "initial_price". Secondly the plugin now only supports two decimal places of precision. This means that the lowest possible price is now 0.01.
Also, some of your child multipliers have extremely low values and do not make sense.
from nascraft.
Adjusted to this config.
Still getting some NaN's around the top movers after a fresh server start. I will check back in a few hours and see if those clear up.
May need some logic/exception handling around when there is no movement when the server is fresh.
# Nascraft config - 1.2.1
# Verifies if the necessary layout is present (And in its correct version), and if not, places it in AdvancedGUI's layout folder.
AutoResourcesInjection: true
Items_quoted:
Categories:
# Reference of the category. Categories are displayed in the main menu.
1:
# Display name of the category (cannot be very long).
name: "Stone age"
# Items within the category. A maximum of six (6) items are allowed per category.
items:
# Material of the item.
cobblestone:
# OPTIONAL: Display name of the item. If not specified, the material (with the first letter capitalized and without underscores) will be displayed.
alias: "Cobble"
# REQUIRED: INITIAL price. This value will be disregarded once the market begins to establish its own valuations.
initial_price: 0.012
# OPTIONAL: You can have a support level, a resistance level, or both for each item.
# In this example, the item will fluctuate randomly between 0,3 - 2 and will try to go again to this range
# when the price deviates due to player actions.
support: 0.8
resistance: 2
# OPTIONAL: The elasticity of an item determines the degree of deviation caused by player movements.
elasticity: 0.53
# OPTIONAL: The intensity of the noise determines the magnitude of the random fluctuations.
noise_intensity: 1.4
# Child items. The price of these items will be determined by their parent item.
child:
cobblestone_slab:
# To make a cobblestone slab we only need half of a cobblestone block, so the price of the slab is half the price of the cobblestone.
# Therefore, the initial price will be 0.5 times the price of cobblestone, resulting in 0.6 for one slab in this example.
multiplier: 0.5
cobblestone_stairs:
# To make a cobblestone stair, we require six cobblestones, but we only get four stairs.
# Therefore, the price will be 6/4 = 3/2 = 1.5 times the price of cobblestone.
#
# NOTE: Keep in mind that this logic is not necessary, as you could choose to set the price of a stair as ten times the price of cobblestone.
# However, this would not make sense and would likely allow people to take advantage of the overvaluation.
multiplier: 1.5
cobblestone_wall:
# Spends 6, gets 6. Therefore, the ratio is 6/6 = 1/1 = 1.
multiplier: 1
stone:
initial_price: 0.02
child:
stone_stairs:
multiplier: 1.5
stone_slab:
multiplier: 0.5
stone_pressure_plate:
multiplier: 2
stone_button:
multiplier: 1
cobbled_deepslate:
initial_price: 0.01
child:
cobbled_deepslate_stairs:
multiplier: 1.5
cobbled_deepslate_slab:
multiplier: 0.5
cobbled_deepslate_wall:
multiplier: 1
andesite:
price: 0.12
child:
andesite_stairs:
multiplier: 1.5
andesite_slab:
multiplier: 0.5
andesite_wall:
multiplier: 1
polished_andesite:
multiplier: 1.05
diorite:
initial_price: 0.1
child:
diorite_stairs:
multiplier: 1.5
diorite_slab:
multiplier: 0.5
diorite_wall:
multiplier: 1
polished_diorite:
multiplier: 1.05
granite:
initial_price: 0.5
child:
granite_stairs:
multiplier: 1.5
granite_slab:
multiplier: 0.5
granite_wall:
multiplier: 1
polished_granite:
multiplier: 1.05
# Another category.
2:
name: "Tech"
items:
redstone:
initial_price: 0.2
child:
redstone_block:
multiplier: 9
redstone_torch:
initial_price: 0.3
repeater:
initial_price: 0.6
comparator:
initial_price: 1.0
piston:
initial_price: 2
observer:
initial_price: 3
3:
name: "In the woods"
items:
oak_log:
initial_price: 0.35
child:
oak_planks:
multiplier: 0.25
oak_stairs:
multiplier: 0.375
oak_slab:
multiplier: 0.125
stick:
multiplier: 0.0625
birch_log:
initial_price: 0.35
child:
birch_planks:
multiplier: 0.25
birch_stairs:
multiplier: 0.375
birch_slab:
multiplier: 0.125
dark_oak_log:
initial_price: 2
child:
dark_oak_planks:
multiplier: 0.25
dark_oak_stairs:
multiplier: 0.375
dark_oak_slab:
multiplier: 0.125
acacia_log:
initial_price: 1.75
child:
acacia_planks:
multiplier: 0.25
acacia_stairs:
multiplier: 0.375
acacia_slab:
multiplier: 0.125
4:
name: "Valuables"
items:
diamond:
initial_price: 10
emerald:
initial_price: 5
raw_gold:
initial_price: 2
5:
name: "Utils"
items:
coal:
initial_price: 0.4
child:
charcoal:
multiplier: 1
leather:
initial_price: 1
6:
name: "Ingots"
items:
iron_ingot:
initial_price: 0.4
copper_ingot:
initial_price: 0.3
gold_ingot:
initial_price: 1
netherite_ingot:
initial_price: 50
7:
name: "Food"
items:
cooked_porkchop:
initial_price: 0.75
child:
cooked_mutton:
multiplier: 1
cooked_beef:
multiplier: 1.1
bread:
initial_price: 0.5
child:
carrot:
multiplier: 1
beetroot:
multiplier: 1
apple:
initial_price: 0.25
glow_berries:
initial_price: 0.1
Price_options:
# Set limits on the minimum and maximum prices.
limits:
low: 0.01
high: 99999
# With noise enabled, prices will vary over time in a pseudo-random manner.
noise:
enabled: true
Market_control:
# Although taxation is separated for buying and selling actions separately, the total tax paid is the same regardless of how it is split
# The spread is determined by the deviation in both actions. In the default case, it is 6% for selling and 4% for buying, resulting in a total spread of 10%.
# To avoid strengthening the underground economy, try to keep the taxation as low as possible.
# Heavy taxation can encourage players to trade with each other directly, bypassing intermediaries,
# and reducing the amount of money collected from taxes and making the market less efficient.
taxation:
# 6% taxation when players sell items.
sell: 0.06
# 4% taxation when players buy items.
buy: 0.04
# Do players need the permission "nascraft.market" to operate directly with commands?
market_permission: true
Lang:
# Sell message:
sellmsg: "You are going to sell [MATERIAL] for an approximate amount of [WORTH]\nWrite "
# Specify the currency to be used next to prices.
currency: "₪"
# LAYOUT TEXTS:
# Main title.
title: "Item Market"
# Available placeholders: [AMOUNT], [MATERIAL], [WORTH]
buy_message: "&7You just bought &d[AMOUNT] &7x &d[MATERIAL] &7worth &6[WORTH]"
sell_message: "&7You just sold &d[AMOUNT] &7x &d[MATERIAL] &7worth &6[WORTH]"
# More text:
topmovers: "Top Movers"
subtop: "in the last 30 min"
buy: "Buy"
sell: "Sell"
price: "Price:"
amount_selection: "Select amount:"
trend: "Trend:"
2023-05-13T07:58:35.719696312Z [03:58:35 WARN]: [Nascraft] Plugin Nascraft v1.2.3 generated an exception while executing task 79
2023-05-13T07:58:35.719815913Z java.lang.NumberFormatException: Infinite or NaN
2023-05-13T07:58:35.719870114Z at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
2023-05-13T07:58:35.719907558Z at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
2023-05-13T07:58:35.719962051Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
2023-05-13T07:58:35.719988446Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
2023-05-13T07:58:35.720056983Z at me.bounser.nascraft.market.managers.TasksManager.lambda$shortTermPricesTask$0(TasksManager.java:48) ~[Nascraft-1.2.3.jar:?]
2023-05-13T07:58:35.720090637Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:58:35.720117100Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:58:35.720143751Z at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
2023-05-13T07:59:00.272256776Z [03:59:00 ERROR]: Could not pass event GuiInteractionBeginEvent to Nascraft v1.2.3
java.lang.NumberFormatException: Infinite or NaN
at java.math.BigDecimal.<init>(BigDecimal.java:988) ~[?:?]
at java.math.BigDecimal.<init>(BigDecimal.java:967) ~[?:?]
at me.bounser.nascraft.tools.NUtils.roundToOne(NUtils.java:25) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.updateTopMovers(LayoutModifier.java:230) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:150) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.onInteractionStart(LayoutModifier.java:134) ~[Nascraft-1.2.3.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor465.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T07:59:00.272964702Z at me.leoko.advancedgui.utils.GuiInstance.startInteraction(GuiInstance.java:113) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.GuiWallInstance.startInteraction(GuiWallInstance.java:235) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.listener.CheckListener.lambda$checkWallGUIInstances$3(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T07:59:00.273081177Z at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) ~[?:?]
at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) ~[?:?]
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1707) ~[?:?]
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) ~[?:?]
2023-05-13T07:59:00.273267743Z at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) ~[?:?]
2023-05-13T07:59:00.273309220Z at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) ~[?:?]
2023-05-13T07:59:00.273339527Z at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) ~[?:?]
2023-05-13T07:59:00.273382698Z at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) ~[?:?]
2023-05-13T07:59:00.273426525Z at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) ~[?:?]
2023-05-13T07:59:00.273475286Z at me.leoko.advancedgui.listener.CheckListener.checkWallGUIInstances(CheckListener.java:45) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.listener.CheckListener.onMove(CheckListener.java:26) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor352.execute(Unknown Source) ~[?:?]
at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
at net.minecraft.server.network.ServerGamePacketListenerImpl.handleMovePlayer(ServerGamePacketListenerImpl.java:1604) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket.handle(ServerboundMovePlayerPacket.java:29) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundMovePlayerPacket$PosRot.handle(ServerboundMovePlayerPacket.java:88) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
2023-05-13T07:59:00.274379831Z at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1342) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:59:00.274820657Z at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:59:00.274867967Z at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1319) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:59:00.274964132Z at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1312) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.tickServer(MinecraftServer.java:1389) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:59:00.275090187Z at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1174) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T07:59:00.275174835Z at java.lang.Thread.run(Thread.java:1583) ~[?:?]
from nascraft.
andesite still has 'price' instead of 'initial_price'. I will try to add a better configuration error detection system.
from nascraft.
Yeah fixing that got rid of the initial flood of NPE's when it did create a non zero price history the NaN's went away.
Now I am just getting intermittent errors like this, but the prices are not doing weird things.
2023-05-13T15:31:25.697692178Z [11:31:25 ERROR]: Could not pass event PlayerInteractEvent to AdvancedGUI v2.2.4
2023-05-13T15:31:25.697767743Z java.lang.NullPointerException: Cannot invoke "java.util.Collection.toArray()" because "c" is null
2023-05-13T15:31:25.697803286Z at java.util.ArrayList.<init>(ArrayList.java:181) ~[?:?]
at me.bounser.nascraft.advancedgui.LayoutModifier.lambda$onLayoutLoad$1(LayoutModifier.java:91) ~[Nascraft-1.2.3.jar:?]
at me.leoko.advancedgui.utils.components.Component.onClick(Component.java:152) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.components.GroupComponent.onClick(GroupComponent.java:50) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.components.GroupComponent.onClick(GroupComponent.java:50) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.components.GroupComponent.onClick(GroupComponent.java:50) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
2023-05-13T15:31:25.698113284Z at me.leoko.advancedgui.utils.components.AdaptiveComponent.onClick(AdaptiveComponent.java:67) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.components.GroupComponent.onClick(GroupComponent.java:50) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.utils.interactions.Interaction.click(Interaction.java:126) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at me.leoko.advancedgui.listener.BoardInteractionListener.lambda$onInteractEvent$0(BoardInteractionListener.java:31) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at java.util.ArrayList.forEach(ArrayList.java:1593) ~[?:?]
at me.leoko.advancedgui.listener.BoardInteractionListener.onInteractEvent(BoardInteractionListener.java:28) ~[AdvancedGUI-2.2.4-RELEASE.jar:?]
at com.destroystokyo.paper.event.executor.asm.generated.GeneratedEventExecutor362.execute(Unknown Source) ~[?:?]
2023-05-13T15:31:25.698425361Z at org.bukkit.plugin.EventExecutor$2.execute(EventExecutor.java:77) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T15:31:25.698460878Z at co.aikar.timings.TimedEventExecutor.execute(TimedEventExecutor.java:81) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:git-Paper-527]
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:70) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T15:31:25.698539226Z at io.papermc.paper.plugin.manager.PaperEventManager.callEvent(PaperEventManager.java:54) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.698605140Z at io.papermc.paper.plugin.manager.PaperPluginManagerImpl.callEvent(PaperPluginManagerImpl.java:126) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:615) ~[paper-api-1.19.4-R0.1-SNAPSHOT.jar:?]
2023-05-13T15:31:25.698730538Z at org.bukkit.craftbukkit.v1_19_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:562) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.level.ServerPlayerGameMode.useItemOn(ServerPlayerGameMode.java:536) ~[?:?]
2023-05-13T15:31:25.698822333Z at net.minecraft.server.network.ServerGamePacketListenerImpl.handleUseItemOn(ServerGamePacketListenerImpl.java:1958) ~[?:?]
2023-05-13T15:31:25.698886200Z at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.handle(ServerboundUseItemOnPacket.java:37) ~[?:?]
at net.minecraft.network.protocol.game.ServerboundUseItemOnPacket.a(ServerboundUseItemOnPacket.java:9) ~[?:?]
at net.minecraft.network.protocol.PacketUtils.lambda$ensureRunningOnSameThread$0(PacketUtils.java:51) ~[?:?]
2023-05-13T15:31:25.699036422Z at net.minecraft.server.TickTask.run(TickTask.java:18) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.699109523Z at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:153) ~[?:?]
at net.minecraft.util.thread.ReentrantBlockableEventLoop.doRunTask(ReentrantBlockableEventLoop.java:24) ~[?:?]
at net.minecraft.server.MinecraftServer.doRunTask(MinecraftServer.java:1342) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.699336246Z at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:197) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.699389570Z at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:126) ~[?:?]
2023-05-13T15:31:25.699433434Z at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:1319) ~[paper-1.19.4.jar:git-Paper-527]
at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:1312) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.699512802Z at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:136) ~[?:?]
at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:1290) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.699614863Z at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:1178) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:25.699678140Z at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:320) ~[paper-1.19.4.jar:git-Paper-527]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
2023-05-13T15:31:28.718315248Z [11:31:28 WARN]: [Nascraft] Plugin Nascraft v1.2.3 generated an exception while executing task 79
java.lang.NullPointerException: Cannot invoke "java.util.List.get(int)" because "categories" is null
at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:160) ~[Nascraft-1.2.3.jar:?]
2023-05-13T15:31:28.718449120Z at me.bounser.nascraft.market.managers.TasksManager.lambda$shortTermPricesTask$0(TasksManager.java:48) ~[Nascraft-1.2.3.jar:?]
2023-05-13T15:31:28.718475614Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:28.718501407Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.4.jar:git-Paper-527]
2023-05-13T15:31:28.718527387Z at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.4.jar:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
at java.lang.Thread.run(Thread.java:1583) ~[?:?]
[11:32:28 WARN]: [Nascraft] Plugin Nascraft v1.2.3 generated an exception while executing task 79
java.lang.NullPointerException: Cannot invoke "java.util.List.get(int)" because "categories" is null
2023-05-13T15:32:28.717805984Z at me.bounser.nascraft.advancedgui.LayoutModifier.updateMainPage(LayoutModifier.java:160) ~[Nascraft-1.2.3.jar:?]
at me.bounser.nascraft.market.managers.TasksManager.lambda$shortTermPricesTask$0(TasksManager.java:48) ~[Nascraft-1.2.3.jar:?]
2023-05-13T15:32:28.717851221Z at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftTask.run(CraftTask.java:101) ~[paper-1.19.4.jar:git-Paper-527]
at org.bukkit.craftbukkit.v1_19_R3.scheduler.CraftAsyncTask.run(CraftAsyncTask.java:57) ~[paper-1.19.4.jar:git-Paper-527]
at com.destroystokyo.paper.ServerSchedulerReportingWrapper.run(ServerSchedulerReportingWrapper.java:22) ~[paper-1.19.4.jar:?]
2023-05-13T15:32:28.717973149Z at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144) ~[?:?]
2023-05-13T15:32:28.718005713Z at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642) ~[?:?]
2023-05-13T15:32:28.718029400Z at java.lang.Thread.run(Thread.java:1583) ~[?:?]
from nascraft.
Hm, I'm still unable to reproduce this error. Could you please provide more details on the circumstances under which it occurs?
from nascraft.
The only other thing I could think of is I have multiple of the panels in close proximity, 4 of them within 2 chunks.
from nascraft.
Updating to the version of protocol lib to the version that was released on Friday I can now only reproduce this on 2 of the 4 panels. I will create a WE schematic of the building if you would like to attempt to reproduce at that level
from nascraft.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nascraft.