[SOLVED] Remove the command from chat?

Discussion in 'Plugin Development' started by ITForScience, Jan 29, 2012.

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

    ITForScience

    hi,
    i and have a small question. when i type in my command, the "/rsd" still stays in the chat. why is that happaning and how can i remove it?
    Code:
        @Override
        public boolean onCommand(CommandSender sender, Command command,
                String label, String[] args)
        {
           
            if(command.getName().equalsIgnoreCase("rsd"))
            {
                bbl.togglePluginState((Player) sender);
            }
           
            return false;
        }
     
  2. You need to put the command in to the plugin.yml file
     
  3. Offline

    Stone_Tigris

    The return false; is putting the usage into chat, you need return true; under the 8th line.
     
  4. Offline

    ITForScience

    solved. thank you!
     
Thread Status:
Not open for further replies.

Share This Page