1
Need help with my bukkit code!
Hey, I have been coding this plugin and I don't know what is the problem, it says it's in the string but can someone help me on this?
and this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.
http://pastebin.com/WMvvNAzQ
org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_6_R1.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_6_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:106)
at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:392)
at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
... 12 moreand this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.
http://pastebin.com/WMvvNAzQ
12
Make sure you have "gryffindor" set in the config?
And if you do make sure its set like this:
And if you do make sure its set like this:
griffindor:
- string
- string
- string
Humm what? I am not working in the config here but rather in Java/Eclipse
Yes but you added config code which means its tryign to get the values from the config file.... that might be the cause of it being null
So... you never made a config.yml in your project?
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
^^ whats there
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
^^ whats there
plugin.getConfig().getStringList("gryffindor"); <---- thats null for some reason
Can you help me on how to fix it?
dbo008TheWizardNetworkHey, I have been coding this plugin and I don't know what is the problem, it says it's in the string but can someone help me on this?org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_6_R1.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_6_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:106)
at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:392)
at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
... 12 more
and this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.
http://pastebin.com/WMvvNAzQ
forums.bukkit.org
Already asked there, nobody as been able to help me.
TheWizardNetworkHey, I have been coding this plugin and I don't know what is the problem, it says it's in the string but can someone help me on this?org.bukkit.plugin.InvalidPluginException: java.lang.ExceptionInInitializerError
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:184)
at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.loadPlugins(CraftServer.java:239)
at org.bukkit.craftbukkit.v1_6_R1.CraftServer.<init>(CraftServer.java:217)
at net.minecraft.server.v1_6_R1.PlayerList.<init>(PlayerList.java:55)
at net.minecraft.server.v1_6_R1.DedicatedPlayerList.<init>(SourceFile:11)
at net.minecraft.server.v1_6_R1.DedicatedServer.init(DedicatedServer.java:106)
at net.minecraft.server.v1_6_R1.MinecraftServer.run(MinecraftServer.java:392)
at net.minecraft.server.v1_6_R1.ThreadServerApplication.run(SourceFile:582)
Caused by: java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:249)
at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:173)
... 9 more
Caused by: java.lang.NullPointerException
at me.Trevor1134.SortingHat.SortingHat.<clinit>(SortingHat.java:30)
... 12 more
and this my Java Code on the paste bin, i have implemented from the onEnable to the onDisable.
http://pastebin.com/WMvvNAzQ
forums.bukkit.org
Will look at it Tomorrow.
Okay thanks, I didn't see your post...
