Multiple denomination woes.
ryantheleach opened this issue ยท 4 comments
the following error message appears after attempting to use multiple denominations with this config file:
A great improvement would be some catching of exceptions with nicer error messages explaining what is wrong, or alternately to contact the plugin author on this github.
currency:
name:
singular: Gnugget
plural: Gnuggets
fractional: false
denominations:
371: 1
266: 5
41: 25
388: 100
133: 500
transactiontax:
flat: 0.0
rate: 0.0
usevault:
container: true
enderchest: true
2013-01-11 01:31:00 [SEVERE] null
org.bukkit.command.CommandException: Unhandled exception executing command 'moneyadm' in plugin Gringotts v1.4.1b
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46)
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:186)
at org.bukkit.craftbukkit.v1_4_6.CraftServer.dispatchCommand(CraftServer.java:514)
at net.minecraft.server.v1_4_6.PlayerConnection.handleCommand(PlayerConnection.java:979)
at net.minecraft.server.v1_4_6.PlayerConnection.chat(PlayerConnection.java:897)
at net.minecraft.server.v1_4_6.PlayerConnection.a(PlayerConnection.java:852)
at net.minecraft.server.v1_4_6.Packet3Chat.handle(Packet3Chat.java:44)
at net.minecraft.server.v1_4_6.NetworkManager.b(NetworkManager.java:290)
at net.minecraft.server.v1_4_6.PlayerConnection.d(PlayerConnection.java:112)
at net.minecraft.server.v1_4_6.ServerConnection.b(SourceFile:39)
at net.minecraft.server.v1_4_6.DedicatedServerConnection.b(SourceFile:30)
at net.minecraft.server.v1_4_6.MinecraftServer.r(MinecraftServer.java:598)
at net.minecraft.server.v1_4_6.DedicatedServer.r(DedicatedServer.java:224)
at net.minecraft.server.v1_4_6.MinecraftServer.q(MinecraftServer.java:494)
at net.minecraft.server.v1_4_6.MinecraftServer.run(MinecraftServer.java:427)
at net.minecraft.server.v1_4_6.ThreadServerApplication.run(SourceFile:849)
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.get(Unknown Source)
at org.gestern.gringotts.Account.add(Account.java:89)
at org.gestern.gringotts.Commands$Moneyadmin.onCommand(Commands.java:196)
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44)
... 15 more
Nevermind the error, i screwed up the yaml whitespace, but as said, some exception handling or error catching would be grand.
Thanks. Yes you're right, this error should probably be anticipated. Please let me know of any other non-helpful exceptions that turn up!
are you busy at the moment, I'm having more troubles between interaction of chestshop and vault and gringotts and would love to be able to instant message of some kind.
chestshop's price is set to 1, but its extracting emeralds from players vaults / inventory's even when emeralds are supposed to be worth 100. the moneyadm commands work fine for granting money or removing it as well as calculating the balance correctly.
Sure, you can add me on jabber/gtalk as [email protected] or skype as jastice