Closed Malkierian closed 12 years ago
Can you try this version? http://thebigdigmc.info/Craftconomy-2.3.5-SNAPSHOT.jar . It seems impossible to error from line 355.
Yes, that one worked. Wonderfully. However, now that it's actually displaying, when I do simply /money, it displays my balance twice. Just a minor complaint, though.
Oh, and I'm going to post another issue with a feature request.
2012-07-05 06:43:33 [SEVERE] null org.bukkit.command.CommandException: Unhandled exception executing command 'money' in plugin Craftconomy v2.3.5-b4 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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:106) 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 org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:172) 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.StringIndexOutOfBoundsException: String index out of range: 2 at java.lang.String.substring(String.java:1934) at me.greatman.Craftconomy.Craftconomy.format(Craftconomy.java:355) at me.greatman.Craftconomy.Craftconomy.format(Craftconomy.java:320) at me.greatman.Craftconomy.commands.money.OwnMoneyCommand.perform(OwnMoneyCommand.java:29) at me.greatman.Craftconomy.commands.BaseCommand.execute(BaseCommand.java:58) at me.greatman.Craftconomy.Craftconomy.handleMoneyCommand(Craftconomy.java:272) at me.greatman.Craftconomy.Craftconomy.onCommand(Craftconomy.java:237) at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
I just tested this with 2.3.5-b5, it's still there. As I said, I'm using the MySQL backend.