Plugin Not Working! [Please Help]

Discussion in 'Plugin Development' started by feff890, Mar 2, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    feff890

    Ok so I am attempting at my first minigame.
    I am really stuck though because when I tested it on my localhost ( :25565 ) server it worked PERFECTLY, but when I try it on an actual server (Hosted by Fluctis, I don't think that has anything to do with the problem though) it doesn't appear in the /pl list.
    This is what my console says:

    Code:
    Could not load 'plugins\/War.jar' in folder 'plugins'
     
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: com\/gmail\/woodyc40\/arenapvp\/ArenaPVP : Unsupported major.minor version 52.0
     
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:131) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:328) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:251) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.loadPlugins(CraftServer.java:364) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at org.bukkit.craftbukkit.v1_7_R4.CraftServer.(CraftServer.java:326) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at net.minecraft.server.v1_7_R4.PlayerList.(PlayerList.java:68) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at net.minecraft.server.v1_7_R4.DedicatedPlayerList.(SourceFile:14) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at net.minecraft.server.v1_7_R4.DedicatedServer.init(DedicatedServer.java:133) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:436) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    Caused by: java.lang.UnsupportedClassVersionError: com\/gmail\/woodyc40\/arenapvp\/ArenaPVP : Unsupported major.minor version 52.0
     
    at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.7.0_03]
     
    at java.lang.ClassLoader.defineClass(ClassLoader.java:791) ~[?:1.7.0_03]
     
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[?:1.7.0_03]
     
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:449) ~[?:1.7.0_03]
     
    at java.net.URLClassLoader.access$100(URLClassLoader.java:71) ~[?:1.7.0_03]
     
    at java.net.URLClassLoader$1.run(URLClassLoader.java:361) ~[?:1.7.0_03]
     
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355) ~[?:1.7.0_03]
     
    at java.security.AccessController.doPrivileged(Native Method) ~[?:1.7.0_03]
     
    at java.net.URLClassLoader.findClass(URLClassLoader.java:354) ~[?:1.7.0_03]
     
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:77) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:62) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at java.lang.ClassLoader.loadClass(ClassLoader.java:423) ~[?:1.7.0_03]
     
    at java.lang.ClassLoader.loadClass(ClassLoader.java:356) ~[?:1.7.0_03]
     
    at java.lang.Class.forName0(Native Method) ~[?:1.7.0_03]
     
    at java.lang.Class.forName(Class.java:264) ~[?:1.7.0_03]
     
    at org.bukkit.plugin.java.PluginClassLoader.(PluginClassLoader.java:40) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:127) ~[craftbukkit.jar:git-Bukkit-1.7.9-R0.2-24-g07d4558-b3116jnks]
     
    ... 9 more
    Any help?
    By the way this is my plugin.yml:

    Code:
    main: com.gmail.woodyc40.arenapvp.ArenaPVP
     
     
    name: War
     
     
    version: 1.0.0
     
     
    description: Advanced PvP Minigame
     
     
    commands:
     
     
        join:
     
     
          description: joins arena
     
     
          usage: /<command> [id]
     
      create:
     
     
          description: creates arena
     
     
          usage: /<command>
     
     
        remove:
     
     
          description: removes arena
     
     
          usage: /<command> [id]
     
     
        leave:
     
     
          description: leaves arena
     
     
          usage: /<command>
     
    Last edited: Mar 2, 2015
  2. Offline

    mine-care

    Please put traces/code/plugin.yml in code brackets, it is far more readable.
    The error is that your compile version doesn't match the one running on yo server, I suppose you compile on 1.8 where server is 1.7 (java version not bukkit version)
     
  3. Offline

    feff890

    @mine-care
    How do I do this? I mean the compiling?
     
  4. Offline

    mine-care

    @feff890 just on your IDE change the compiler settings to a lower version of java :- ) plenty of tutorials to look through, that depends purely on your IDE
     
    feff890 likes this.
  5. Offline

    feff890

    @mine-care
    Ok but why does it work on my localhost server if the compiler settings are too high?
     
  6. Offline

    uksspy

    Because since you are running the server on the same machine that you compiled the code it works. The newer versions of java are not yet standard so different machines will probably be running earlier versions.
     
    feff890 likes this.
  7. Offline

    feff890

    Ok thanks uksspy and mine-care!
    +1 Like
     
  8. Offline

    mine-care

    Yo welcome =]
     
Thread Status:
Not open for further replies.

Share This Page