Zombie Ablockalypse

Zombie Ablockalypse

18k Downloads

Custom Items Error

Opened this issue ยท 2 comments

commented

When I add custom items to the items.yml file, I get an error for item 263:1 which is charcoal. I also tried 2631 and got the same error so I assume I get an error since the item has ':1' after it. Is there any way around this? Also, the reason I tried to use 2631 was because that is how the plugin Crackshot reads that extra value.
The error:
2013-09-29 21:06:27 [INFO] [Ablockalypse] Enabling Ablockalypse v1.2.9.2 2013-09-29 21:06:27 [SEVERE] Error occurred while enabling Ablockalypse v1.2.9.2 (Is it up to date?) java.lang.NumberFormatException: For input string: "263~1" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at com.github.manager.ItemFileManager.(ItemFileManager.java:36) at com.github.External.(External.java:95) at com.github.Ablockalypse.onEnable(Ablockalypse.java:142) at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:217) at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:381) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.loadPlugin(CraftServer.java:282) at org.bukkit.craftbukkit.v1_6_R2.CraftServer.enablePlugins(CraftServer.java:264) at net.minecraft.server.v1_6_R2.MinecraftServer.l(MinecraftServer.java:313) at net.minecraft.server.v1_6_R2.MinecraftServer.f(MinecraftServer.java:290) at net.minecraft.server.v1_6_R2.MinecraftServer.a(MinecraftServer.java:250) at net.minecraft.server.v1_6_R2.DedicatedServer.init(DedicatedServer.java:151) at net.minecraft.server.v1_6_R2.MinecraftServer.run(MinecraftServer.java:391) at net.minecraft.server.v1_6_R2.ThreadServerApplication.run(SourceFile:582)

commented

I have attempted to fix the issue, I will keep this issue open for reference. I have yet to test the fix, and will do so shortly.

commented

Tested and fixed!