[Case closed] = )

Discussion in 'Plugin Development' started by Kingzuck, Aug 11, 2011.

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

    Kingzuck

    Hey people,

    my problem ist this:
    Code:
    4:50:22 [SCHWERWIEGEND] Could not load 'plugins\Starter.jar' in folder 'plugins
    ':
    java.io.FileNotFoundException: Jar does not contain plugin.yml
            at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.j
    ava:64)
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
    java:207)
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
    .java:130)
            at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:128)
            at org.bukkit.craftbukkit.CraftServer.<init>(CraftServer.java:97)
            at net.minecraft.server.ServerConfigurationManager.<init>(ServerConfigur
    ationManager.java:51)
            at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:132)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    this is my source:
    Code:
    package me.kingzuck.start;
    
    import org.bukkit.ChatColor;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.inventory.ItemStack;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class start extends JavaPlugin {
    
        @Override
        public void onDisable() {
    
            System.out.println("StarterPlugin disabled");
    
        }
    
        @Override
        public void onEnable() {
    
            System.out.println("StarterPlugin Enabled");
    
        }
    
        @Override
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    
            boolean succed = false;
    
            if (sender instanceof Player){
    
                Player player = (Player) sender;
    
                if(cmd.getName().equalsIgnoreCase("start")){
    
                    if(args.length == 0){
    
                        player.getInventory().setHelmet(new ItemStack(299, 1));
                        player.getInventory().setChestplate(new ItemStack(300, 1));
                        player.getInventory().setLeggings(new ItemStack(301, 1));
                        player.getInventory().setBoots(new ItemStack(302, 1));
                        succed = true;
                    }else{
    
                        player.sendMessage(ChatColor.GRAY + "Starter:" + ChatColor.RED + "Du hast zu viele argumente angegeben" );
                        succed = false;
                    }
    
                }
    
            }
    
            return succed;
        }
    
    }
    
    Code:
    package me.kingzuck.start;
    
    
    and my plugin.yml :
    [CODE]name: Start
    version: 1.0
    description: starter
    author: kingzuck
    website: http://www.bukkit.org/
    
    main: com.bukkit.kingzuck.start.start
    
    commands:
      starter:
        description: starter
        usage: /<command>

    sorry for my bad english ;)
     

    Attached Files:

  2. Offline

    r3Fuze

    @Kingzuck
    Looks like your plugin.yml is in the wrong spot.
     
    Kingzuck likes this.
  3. Offline

    Kingzuck

    how do you mean in the wrong place?
    I have create the yml on the package
     
  4. Offline

    scranner

    try uploading your .jar and we can take a look
     
    Kingzuck likes this.
  5. Offline

    Kingzuck

    it´s now in the first post ;)
     
  6. Offline

    scranner

    ok your problem is your plugin.yml is in the wrong place when you open your .jar with something like winzip it should be on the first screen.
    <Edit by Moderator: Redacted mediafire url>
    take a look at that ive move the plugin.yml and it works now
     
    Last edited by a moderator: Nov 12, 2016
    Kingzuck likes this.
Thread Status:
Not open for further replies.

Share This Page