[Case closed] = )

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

Thread Status:
Not open for further replies.
  1. Hey people,

    my problem ist this:
    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
            at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.
            at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager
            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
            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:
    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 {
        public void onDisable() {
            System.out.println("StarterPlugin disabled");
        public void onEnable() {
            System.out.println("StarterPlugin Enabled");
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
            boolean succed = false;
            if (sender instanceof Player){
                Player player = (Player) sender;
                    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;
                        player.sendMessage(ChatColor.GRAY + "Starter:" + ChatColor.RED + "Du hast zu viele argumente angegeben" );
                        succed = false;
            return succed;
    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
        description: starter
        usage: /<command>

    sorry for my bad english ;)
  2. @Kingzuck
    Looks like your plugin.yml is in the wrong spot.
    Kingzuck likes this.
  3. how do you mean in the wrong place?
    I have create the yml on the package
  4. Offline


    try uploading your .jar and we can take a look
    Kingzuck likes this.
  5. it´s now in the first post ;)
  6. Offline


    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