Please help!!

Discussion in 'Plugin Development' started by iRasS_7rba, Sep 9, 2013.

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

    iRasS_7rba

    Hello all,
    Iam just started learning Java bukkit and i would like to create plugins.

    but when i create any plugin then i install it on my own server
    Iam getting a error
    I don't know what is a problem?

    This is the script:
    package me.test.test;

    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;

    public class test {

    public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args){
    if(cmd.getName().equalsIgnoreCase("KillPlayer")){
    Player target = sender.getServer().getPlayer(args[0]);
    target.setHealth(0);
    }
    return false;
    }


    }​
    And this is the error

    [​IMG]


    Iam using : bukkit-1.6.2-R0.2-20130908.060124-17
    I added it on External jars ..

    Could someone tell me what's the problem??

    thanks!
     
  2. Offline

    The_Doctor_123

    It seems your plugin.yml is missing/invalid. Your main class must also extend JavaPlugin.
     
Thread Status:
Not open for further replies.

Share This Page