Very Flustered...

Discussion in 'Plugin Development' started by lubbs31, Feb 24, 2015.

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


    I have tried time after time to develop plugins... some simplist of the simple! But every time.... IT FAILS! I have watched videos.... way to many.

    Every time, it doesn't even show up in /pl

    So now... i ask, or plead, someone to help me! I'd love if we could IM on skype or something. or even skype.... But please, I hope someone will step forward.
  2. Offline


    1. where is your plugin yml located
    2. stack trace?
    3. source code of one of your simple plugins
    4. what is your plugin yml
  3. Offline



    Likely there will be a stack trace in your console where your plugin failed to load, post that.
  4. Offline


  5. Offline


    21:27:39 ERROR]: Could not load 'plugins/Testing.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at ~[craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.Bukkit.reload( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.command.defaults.ReloadCommand.execute( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.command.SimpleCommandMap.dispatch( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.aB( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.v( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.u( [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    Caused by: Jar does not contain plugin.yml
        ... 14 more
    [21:27:39 INFO]: Server permissions file permissions.yml is empty, ignoring it
    @Konato_K @mythbusterma @Samthelord1 That is the error logs.
    package me.lubbs31.Testing;
    import java.util.logging.Logger;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    public class Testing extends JavaPlugin {
        public void onEnable() {
            Logger.getLogger("Minecraft").info("Testing is enabled!");
        public void onDisable (){
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
                Player s = (Player)sender;
                Player target = getServer()
                return true;
            return false;
    That is my code in Eclipse....
    name: testing
    main: me.lubbs31.Testing
    description: Just a test plugin
    version: 1.0
    author: lubbs31
       description: burns you…
    That is my plugin.yml.
  6. Offline


    @lubbs31 Fix the redundant log messages and blind casting, but the real issue is that your plugin.yml file is in the wrong location.
  7. Offline


    @lubbs31 Caused by: Jar does not contain plugin.yml
  8. Offline


  9. Offline


  10. Offline


    @lubbs31 main: me.lubbs31.Testing should be main: me.lubbs31.Testing.Testing
    Package + class xD

    @lubbs31 your burn command does not do anything, you will have to add s.setFireTicks(20); (20 = 1 second, 40 = 2 seconds) there is no point of the "target" variable and on your onEnable do Logger logger = Bukkit.getLogger(); instead
    then do; etc

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


    All these videos steer my wrong.. :(

    Erm... I cannot fix this... Can someone help?

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


    @lubbs31 - Your file contains bad information and you were given the answer above.
  13. Offline


    Here is a picture of one of my simple plugins in Eclipse:
    Hopefully that can give you some insight into how you should have your project set up.
  14. Offline


    Ok.. I did so :) And I fixed that main: thing...

    I am honestly having the hardest time... More videos... :\
  15. Offline


    @lubbs31 Mate, pm me or you talk in this thread, I will help you out on every problem xD
  16. Offline


    Link to plugin tutorials in my description
Thread Status:
Not open for further replies.

Share This Page