Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR] [Sponge]: Error occurred while executing command 'daycare' #2

Closed
xXjojojXx opened this issue Aug 15, 2018 · 17 comments
Closed

Comments

@xXjojojXx
Copy link

xXjojojXx commented Aug 15, 2018

[Server thread/ERROR] [Sponge]: Error occurred while executing command 'daycare' for source EntityPlayerMP['XXXXJOJOXXXX'/472, l='world', x=-2866,78, y=74,62, z=-963,61]: Infinite or NaN
java.lang.NumberFormatException: Infinite or NaN
at java.math.BigDecimal.(Unknown Source) ~[?:1.8.0_171]
at java.math.BigDecimal.(Unknown Source) ~[?:1.8.0_171]
at com.nickimpact.daycare.ui.RanchUI.drawPen(RanchUI.java:126) ~[RanchUI.class:?]
at com.nickimpact.daycare.ui.RanchUI.drawPens(RanchUI.java:84) ~[RanchUI.class:?]
at com.nickimpact.daycare.ui.RanchUI.setupDisplay(RanchUI.java:69) ~[RanchUI.class:?]
at com.nickimpact.daycare.ui.RanchUI.(RanchUI.java:57) ~[RanchUI.class:?]
at com.nickimpact.daycare.commands.DaycareCmd.execute(DaycareCmd.java:56) ~[DaycareCmd.class:?]
at org.spongepowered.api.command.args.ChildCommandElementExecutor.execute(ChildCommandElementExecutor.java:250) ~[ChildCommandElementExecutor.class:1.12.2-2705-7.1.0-BETA-3364]
at org.spongepowered.api.command.spec.CommandSpec.process(CommandSpec.java:388) ~[CommandSpec.class:1.12.2-2705-7.1.0-BETA-3364]
at org.spongepowered.api.command.dispatcher.SimpleDispatcher.process(SimpleDispatcher.java:341) ~[SimpleDispatcher.class:1.12.2-2705-7.1.0-BETA-3364]
at org.spongepowered.common.command.SpongeCommandManager.process(SpongeCommandManager.java:329) [SpongeCommandManager.class:1.12.2-2705-7.1.0-BETA-3364]
at net.minecraft.command.ServerCommandManager.func_71556_a(SourceFile:1083) [dh.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147361_d(NetHandlerPlayServer.java:958) [pa.class:?]
at net.minecraft.network.NetHandlerPlayServer.func_147354_a(NetHandlerPlayServer.java:937) [pa.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:37) [la.class:?]
at net.minecraft.network.play.client.CPacketChatMessage.func_148833_a(SourceFile:9) [la.class:?]
at org.spongepowered.common.network.PacketUtil.onProcessPacket(PacketUtil.java:92) [PacketUtil.class:1.12.2-2705-7.1.0-BETA-3364]
at net.minecraft.network.PacketThreadUtil$1.redirect$onProcessPacket$zle000(SourceFile:539) [hv$1.class:?]
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13) [hv$1.class:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_171]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_171]
at net.minecraft.util.Util.func_181617_a(SourceFile:46) [h.class:?]
at org.spongepowered.common.SpongeImplHooks.onUtilRunTask(SpongeImplHooks.java:293) [SpongeImplHooks.class:1.12.2-2705-7.1.0-BETA-3364]
at net.minecraft.server.MinecraftServer.redirect$onRun$zjj000(MinecraftServer.java:3963) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:723) [MinecraftServer.class:?]
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:396) [nz.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) [MinecraftServer.class:?]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_171]

hey could you possibly post the permissions like the commands please
I think your project is super cool, it will also translate into German.

@NickImpact
Copy link
Owner

Your equation is off, likely a variable is incorrect. For instance, a p might need to be a y

@xXjojojXx
Copy link
Author

maybe you would have the commands like the permissions for me

@NickImpact
Copy link
Owner

What?

@xXjojojXx
Copy link
Author

if i wrote /daycare in chat then this notice come (see image above)

@NickImpact
Copy link
Owner

NickImpact commented Aug 15, 2018

Yes, the equation used to calculate pen prices is broken, likely due to a variable being incorrect. Until that is fixed, the plugin will likely continue to run into this issue.

This is in your config btw, it’s a change you need to make.

@xXjojojXx
Copy link
Author

I need the permissions to assign them to the groups and the commands for the chat to work with the mod at all

@xXjojojXx
Copy link
Author

oky

@NickImpact
Copy link
Owner

You can either set an NPC as a window to open the daycare, or you can give them daycare.commands.daycare.base to allow them to do /daycare

@xXjojojXx
Copy link
Author

The players should make the menu on the NPC and VIP should be able to use the Command as a "bonus".
So how do I set the NPC

@NickImpact
Copy link
Owner

/daycare admin setnpc (npc name)

@xXjojojXx
Copy link
Author

daycare.commands.daycare.base /daycare Is it correct that way?

@NickImpact
Copy link
Owner

That’s the permission they need to open the daycare via command

@xXjojojXx
Copy link
Author

/daycare admin setnpc jojo
/daycare admin setnpc gogo
I've put the NPC down but who I right click happens Nothing

@xXjojojXx
Copy link
Author

if I use the command I still get an error message /daycare Error occurred while executing command 'daycare

@xXjojojXx
Copy link
Author

https://prnt.sc/kj19qi
Here is a picture of what happened, could you tell me what exactly I need to type in there to make it work?
/daycare admin prices 5000 ? ?

@xXjojojXx
Copy link
Author

xXjojojXx commented Aug 16, 2018

https://prnt.sc/kj596j
https://prnt.sc/kj5bdp
/daycare Error

https://prnt.sc/kj19qi
Here is a picture of what happened, could you tell me what exactly I need to type in there to make it work?
/daycare admin prices 5000 ?

Daycare-S7.1.0-0.9.0-BETA

@xXjojojXx
Copy link
Author

hello

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

No branches or pull requests

2 participants