Could not find main class? ( Noob - pl0x help)

Discussion in 'Plugin Development' started by Tabbin, Mar 14, 2015.

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

    Tabbin

    [​IMG]


    This is what the consoles saying..


    I've tryed alot of things. But it's still not working


    plugin.yml:



    Code:
    main: me.TestPlugin
    name: TestPlugin
    version: 0.0.1



    TestPlugin.java


    Code:
    package me.TestPlugin;
    
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class TestPlugin extends JavaPlugin{
       
        @Override
        public void onEnable() {
            getLogger().info("Test Plugin Enabled!");
       
       
    }
    
        @Override
        public void onDisable() {
           
        }
       
       
        public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {
           
            if (cmd.getName().equalsIgnoreCase("hello") && sender instanceof Player) {
               
               
                Player player = (Player) sender;
               
                player.sendMessage("Hello, " + player.getName() + "!");
               
               
                return true;
            }
           
            return false;
        }
       
       
       
    
    }
    







    Full thing:


    [​IMG]




    It's 2:30 in the morning and im tired :p


    Thanks for the help :)
     
  2. Offline

    Darq

    The error you received doesn't seem to match what your plugin.yml is.. regardless, looks your plugin.yml should look like this:

    Code:
    main: me.TestPlugin.TestPlugin
    name: TestPlugin
    version: 0.0.1
    
     
    Vextricity likes this.
  3. Offline

    Skionz

    Use naming conventions!
     
Thread Status:
Not open for further replies.

Share This Page