Betterverse/BetterMechanics — Issue #3: Player Interact Event
Author: Asphodan
Created: 2012-03-07 20:47:43+00:00
State: open
Labels: Functionality Broken, Medium Priority

2012-03-07 14:45:53 [SEVERE] Could not pass event PlayerInteractEvent to BetterMechanics
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:303)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:441)
at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:285)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:634)
at net.minecraft.server.Packet15Place.handle(SourceFile:39)
at net.minecraft.server.NetworkManager.b(NetworkManager.java:229)
at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:112)
at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:169)
at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:85)
at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:624)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:508)
at net.minecraft.server.ThreadServerApplication.run(SourceFile:490)
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
at java.lang.String.charAt(Unknown Source)
at net.edoxile.bettermechanics.utils.SignUtil.stripBrackets(SignUtil.java:93)
at net.edoxile.bettermechanics.utils.SignUtil.getMechanicsIdentifier(SignUtil.java:85)
at net.edoxile.bettermechanics.utils.MechanicsHandler.callPlayerInteractEvent(MechanicsHandler.java:130)
at net.edoxile.bettermechanics.listeners.BMPlayerListener.onPlayerInteract(BMPlayerListener.java:46)
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:301)
... 14 more