Flags

Flags

14.2k Downloads

Flags Addon.

ryantheleach opened this issue ยท 3 comments

commented

I've tried creating the following Flags addon https://github.com/ryantheleach/FlagsCreeperHeal but I get this error:
As it's essentially a clone of your other plugins, I thought maybe you had seen this error before.

[15:53:17] [Server thread/INFO]: [FlagsCreeperHeal] Enabling FlagsCreeperHeal v1.0
[15:53:17] [Server thread/ERROR]: Error occurred while enabling FlagsCreeperHeal v1.0 (Is it up to date?)
java.lang.NoClassDefFoundError: io/github/alshain01/Flags/Flags
at io.github.ryantheleach.FlagsCreeperHeal.FlagsCreeperHeal.onEnable(FlagsCreeperHeal.java:63) ~[?:?]
at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:218) ~[craftbukkit.jar:git-Spigot-1212]
at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:457) [craftbukkit.jar:git-Spigot-1212]
at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:385) [craftbukkit.jar:git-Spigot-1212]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.loadPlugin(CraftServer.java:302) [craftbukkit.jar:git-Spigot-1212]
at org.bukkit.craftbukkit.v1_7_R1.CraftServer.enablePlugins(CraftServer.java:284) [craftbukkit.jar:git-Spigot-1212]
at net.minecraft.server.v1_7_R1.MinecraftServer.m(MinecraftServer.java:348) [craftbukkit.jar:git-Spigot-1212]
at net.minecraft.server.v1_7_R1.MinecraftServer.g(MinecraftServer.java:325) [craftbukkit.jar:git-Spigot-1212]
at net.minecraft.server.v1_7_R1.MinecraftServer.a(MinecraftServer.java:281) [craftbukkit.jar:git-Spigot-1212]
at net.minecraft.server.v1_7_R1.DedicatedServer.init(DedicatedServer.java:184) [craftbukkit.jar:git-Spigot-1212]
at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:430) [craftbukkit.jar:git-Spigot-1212]
at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Spigot-1212]
Caused by: java.lang.ClassNotFoundException: io.github.alshain01.Flags.Flags
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_11]
at java.net.URLClassLoader$1.run(Unknown Source) ~[?:1.7.0_11]
at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_11]
at java.net.URLClassLoader.findClass(Unknown Source) ~[?:1.7.0_11]
at org.bukkit.plugin.java.PluginClassLoader.findClass0(PluginClassLoader.java:80) ~[craftbukkit.jar:git-Spigot-1212]
at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:53) ~[craftbukkit.jar:git-Spigot-1212]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_11]
at java.lang.ClassLoader.loadClass(Unknown Source) ~[?:1.7.0_11]
... 12 more

commented

Also, the modules you have that came with 1.2.3 won't work either. I don't upload those to a repo, so just delete them for testing. I hope to get 1.3 out real soon.

commented

Oh, I'm terribly sorry about that. What your running into I believe is a disparity between the Github (which is absolute current 1.3 sources) and Flags v1.2.3 which is probably what you downloaded from BukkitDev. Some things in the API have changed pretty heavily (hopefully the last time I will have breaking changes in the API). The good news is at first glance your plugins looks good and is compatible with the coming version. The bad news is, it's not released yet (but I hope to get it out soon).

If you want to test the plugin you can download a snapshot from the maven repo, be warned however there are bugs. Not just the possibility of bugs but I've actually found a few that haven't been fixed yet.

http://pages.suddenlink.net/alshain01/flags/repository/io/github/alshain01/Flags/1.3.0-SNAPSHOT/Flags-1.3.0-20140116.004801-52.jar

commented

Cheers.