Very Flustered...

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

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

    lubbs31

    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

    Samthelord1

    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

    mythbusterma

    @lubbs31

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

    Konato_K

  5. Offline

    lubbs31

    Code:
    21:27:39 ERROR]: Could not load 'plugins/Testing.jar' in folder 'plugins'
    org.bukkit.plugin.InvalidDescriptionException: Invalid plugin.yml
        at org.bukkit.plugin.java.JavaPluginLoader.getPluginDescription(JavaPluginLoader.java:150) ~[craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:133) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.loadPlugins(CraftServer.java:355) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.reload(CraftServer.java:797) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.Bukkit.reload(Bukkit.java:288) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.command.defaults.ReloadCommand.execute(ReloadCommand.java:23) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:180) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchCommand(CraftServer.java:701) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at org.bukkit.craftbukkit.v1_7_R3.CraftServer.dispatchServerCommand(CraftServer.java:688) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.aB(DedicatedServer.java:296) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.DedicatedServer.v(DedicatedServer.java:261) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.u(MinecraftServer.java:558) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.MinecraftServer.run(MinecraftServer.java:469) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
        at net.minecraft.server.v1_7_R3.ThreadServerApplication.run(SourceFile:628) [craftbukkit_beta.jar:git-Bukkit-1.7.9-R0.1-10-g8688bd4-b3092jnks]
    Caused by: java.io.FileNotFoundException: 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.
    Code:
    package me.lubbs31.Testing;
    
    import java.util.logging.Logger;
    
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class Testing extends JavaPlugin {
        @Override
        public void onEnable() {
            Logger.getLogger("Minecraft").info("Testing is enabled!");
        }
        @Override
        public void onDisable (){
           
        }
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
            if(cmd.getName().equalsIgnoreCase("burn")){
                Player s = (Player)sender;
                Player target = getServer()
                return true;
            }
            return false;
    
        }
       
    }
    
    That is my code in Eclipse....
    Code:
    name: testing
    main: me.lubbs31.Testing
    description: Just a test plugin
    version: 1.0
    author: lubbs31
    
    commands:
    burn:
       description: burns you…
    That is my plugin.yml.
     
  6. Offline

    Skionz

    @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

    Konato_K

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

    _Filip

  9. Offline

    lubbs31

  10. Offline

    Gingerbreadman

    @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 logger.info(); 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

    lubbs31

    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

    nj2miami

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

    uksspy

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

    lubbs31

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

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

    Gingerbreadman

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

    BaconStripzMan

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

Share This Page