Problem/Bug Problems with my bukkit plugins

Discussion in 'Plugin Help/Development/Requests' started by XSlimeG4mesX, Jul 14, 2015.

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

    XSlimeG4mesX

    Hello, I'm a newbie creating bukkit plugins and I have a problem on my last 1.8 bukkit plugin. The error that I have is when I try to type a command like /hello the chat says me /hello again. I don't know why is this happening because the .class does not notice any error. I hope anyone can help me with this bug.
    My .class file:
    Code:
    package me.slimeg4mes;
    
    import org.bukkit.Color;
    import org.bukkit.command.Command;
    import org.bukkit.command.CommandSender;
    import org.bukkit.entity.Player;
    import org.bukkit.plugin.java.JavaPlugin;
    
    public class OC2 extends JavaPlugin{
    
        @Override
        public void onEnable () {
            getLogger().info("Activado sin problemas.");
        }
       
        @Override
        public void onDisable () {
           
        }
       
        public boolean hola(CommandSender sender, Command cmd, String label, String[] args) {
           
            if (cmd.getName().equalsIgnoreCase("hola") && sender instanceof Player ) {
           
            Player player = (Player) sender;
           
            player.sendMessage(Color.AQUA + "Saludos," + Color.BLUE + player.getName() + Color.AQUA + "!" );
           
            }
            return false;
            }   
           
    }
    
    My plugin.yml file:
    Code:
    name: OC2
    main: me.slimeg4mes.OC2
    version: 0.1
    commands:
       hola:
          description: Te devuelve un amable saludo!
          usage: /<command>
     
Thread Status:
Not open for further replies.

Share This Page