Old Hunger

Discussion in 'Archived: Plugin Requests' started by Hoolean, Aug 12, 2012.

  1. Offline

    Dragonphase

    I assume it works then? Tell me if there's anything else you need.
     
  2. Offline

    kahlilnc

    2012-08-13 13:48:46 [SEVERE] Could not load 'plugins\ClassicHunger.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.UnsupportedClassVersionError: org/Dragonphase/ClassicHunger/ClassicHunger : Unsupported major.minor version 51.0
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
    at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
    at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:239)
    at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:215)
    at net.minecraft.server.ServerConfigurationManagerAbstract.<init>(ServerConfigurationManagerAbstract.java:50)
    at net.minecraft.server.ServerConfigurationManager.<init>(SourceFile:11)
    at net.minecraft.server.DedicatedServer.init(DedicatedServer.java:105)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:378)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.UnsupportedClassVersionError: org/Dragonphase/ClassicHunger/ClassicHunger : Unsupported major.minor version 51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$000(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:41)
    at org.bukkit.plugin.java.PluginClassLoader.findClass(PluginClassLoader.java:29)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:144)
    ... 9 more
     
  3. Offline

    Dragonphase

    https://dl.dropbox.com/u/38185080/ClassicHealth.jar This work? It all works for me atleast... I just changed the execution environment to java 1.6
     
  4. Offline

    -_Husky_-

    Theres like 40 plugins that do this
     
  5. Offline

    Dragonphase

    It gave me something to do. It's summer, man.
     
  6. Offline

    -_Husky_-

    Summers awesome, go to the beach :p
     
  7. Offline

    Dragonphase

    Lolno, the beach where I live is full of crap.
     
  8. Offline

    Hoolean Retired Staff

    Still doesn't work... don't know why, I definitely have Java 7 :( . Anyways, regardless of that, could I see the source of it, because I am going to make a plugin myself soon and would like to see how some others work. Thanks again! :D
     
  9. Offline

    Dragonphase

    Why this doesn't work is a mystery to me. It works for everyone I've given it to... And sure, I need to link it to my GitHub but I'll do it later when I am at the computer.
     
    MrBluebear3 likes this.
  10. Offline

    Hoolean Retired Staff

    Thanks! :D
     
  11. Offline

    Dragonphase

    MrBluebear3 likes this.
  12. Offline

    Hoolean Retired Staff

    Thanks will try it. Could you check this code please? I am new to programming plugins...
    Code:
    package com.puffybugs.xpboaster;
     
    import org.bukkit.Bukkit;
    import org.bukkit.event.EventHandler;
    import org.bukkit.event.player.PlayerLevelChangeEvent;
     
    class XpBoaster extends org.bukkit.plugin.java.JavaPlugin {
     
        public void onEnable(){
            getLogger().info("XpBoaster Version 0.1 has been enabled! YAY!");
        }
        public void onDisable(){
            getLogger().info("XpBoaster has been disabled.");
        }
        @EventHandler
        public void onPlayerLevelChange(PlayerLevelChangeEvent event) {
            public int getNewLevel();
            public int getPlayer();
            Bukkit.broadcastMessage();
        }
     
    }
    It is not finished but I need it to say when a player has leveled up and what their new level is. I don't need you to make it, just tell me where I have gone wrong. Thanks! :D

    Oh fixed it! Had some dodgy syntax in there...

    Tried to export my plugin but it didn't like the 'plugin.yml'. I though it was right... Maybe you could have a look at it?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  13. Offline

    Dragonphase

    PHP:
    nameXpBoaster
    main
    com.puffybugs.xpboaster.XpBoaster
    version
    1.0
    description
    : >
                
    Description
    commands
    :
     
    MrBluebear3 likes this.
  14. Offline

    Hoolean Retired Staff

    Ah! I only did name: main: and version:. No descripton and commands. Thanks! That's twice you helped me!

    Code:
    14:24:41 [SEVERE] Could not load 'plugins/XpBoaster.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidPluginException: java.lang.NoSuchMethodException: com.puffybugs.xpboaster.XpBoaster.<init>()
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:155)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:305)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:230)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:222)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:565)
        at org.bukkit.Bukkit.reload(Bukkit.java:183)
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:21)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:492)
        at org.bukkit.craftbukkit.CraftServer.dispatchServerCommand(CraftServer.java:488)
        at net.minecraft.server.DedicatedServer.ah(DedicatedServer.java:248)
        at net.minecraft.server.DedicatedServer.q(DedicatedServer.java:213)
        at net.minecraft.server.MinecraftServer.p(MinecraftServer.java:476)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:408)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:539)
    Caused by: java.lang.NoSuchMethodException: com.puffybugs.xpboaster.XpBoaster.<init>()
        at java.lang.Class.getConstructor0(Class.java:2706)
        at java.lang.Class.getConstructor(Class.java:1657)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:147)
        ... 14 more
    D:

    This is sort of off topic with me requesting help, so I will just PM you k?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 27, 2016
  15. Offline

    zeustehalmighty

  16. Offline

    Dragonphase

  17. Offline

    Hoolean Retired Staff

  18. Offline

    Dragonphase

    The URL says "hunger" but everything else is health. I was tired when i uploaded that
     

Share This Page