http://www.spigotmc.org/threads/arrayindexoutofboundsexception.14826/ Thank you to this dude because he posted it.