Throws an error on player command unknown. #84


  • New
  • Defect
Open
Assigned to _ForgeUser6956315
  • _ForgeUser1848723 created this issue Jul 12, 2012

    What version of DynamicEconomy are you using?:

    Try to explain how to arrive at the problem:
    1) a command like /dynecon ?
    2) or /dynamiceconomy sell ?
    3)

    Please paste the error log, if any. (Also provide DynamicEconomy log)
    2012-07-12 09:43:45 [WARNING] Task of 'DynamicEconomy' generated an exception
    java.lang.NumberFormatException: For input string: "?"
        at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
        at java.lang.Double.parseDouble(Unknown Source)
        at me.ksafin.DynamicEconomy.EnderEngine.<init>(EnderEngine.java:37)
        at me.ksafin.DynamicEconomy.Transaction.run(Transaction.java:1912)
        at com.bergerkiller.bukkit.nolagg.examine.TimedWrapper.run(TimedWrapper.java:20)
        at org.bukkit.craftbukkit.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:126)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:533)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)

    Here is the sell error:

    2012-07-12 09:58:47 [SEVERE] null
    org.bukkit.command.CommandException: Unhandled exception executing command 'sell' in plugin DynamicEconomy v.9.2
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:166)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:479)
        at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:821)
        at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:781)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:764)
        at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:141)
        at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:34)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:113)
        at net.minecraft.serverhook.NetServerHandlerProxy.a(NetServerHandlerProxy.java:83)
        at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
        at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:567)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:459)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:492)
    Caused by: java.lang.NumberFormatException: For input string: "?"
        at sun.misc.FloatingDecimal.readJavaFormatString(Unknown Source)
        at java.lang.Double.parseDouble(Unknown Source)
        at me.ksafin.DynamicEconomy.Transaction.sell(Transaction.java:691)
        at me.ksafin.DynamicEconomy.DynamicEconomyCommandExecutor.onCommand(DynamicEconomyCommandExecutor.java:292)
        at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
        ... 14 more

  • _ForgeUser1848723 added the tags New Defect Jul 12, 2012
  • _ForgeUser1848723 posted a comment Jul 12, 2012

    oops... the error comes up when /sell nothing

    But it would also come up with the other command i typed in because it seems that any unknown command will throw an error.

  • BONNe1704 posted a comment Jul 14, 2012

    Caused by: java.lang.NumberFormatException For input string: "?"

    Fail in .yml file ?????

  • _ForgeUser1848723 posted a comment Jul 16, 2012

    Yes. There was a few strange items in the items.yml that i fixed and it seems to be ok now. Thanks for the help.


To post a comment, please login or register a new account.