Solved Plugin command repeating after use?....

Discussion in 'Plugin Development' started by ICostaEx, Sep 28, 2014.

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

    ICostaEx

    Ok, so i made the commands right as they work.. but after running a command like "/purge start" It will run the command like it should but the sender of the command gets "/purge" after the command is ran.. like shown in this prnt screen..


    http://prntscr.com/4r8jk9

    Removed code due to solved!


    How do i stop this from happening? is there an error that is not showing up or.....
     
  2. Offline

    Lewishjames

    In your plugin.yml. delete the usage
     
  3. Offline

    CraftCreeper6

    ICostaEx
    I would say add a few debugs to see what line it is coming from.

    EDIT: Lewishjames
    Yea, what he said :p
     
  4. Offline

    Jimfutsu

    line 62 set return to true
     
  5. Offline

    ICostaEx

    Fixed, thanks

    Thanks, i added it for safety
     
  6. Offline

    Jimfutsu

    I don't know why you would remove usage.....
    This is my YML

    ltest:
    description: Description
    usage: /<command>
    aliases: []
    In my code :
    Code:
          if(commandLabel.equalsIgnoreCase("LTest")) {
                //
                int particles = Integer.parseInt(args[0]);
                p.sendMessage("Command S");
                this.playLaser(p.getLocation(), p, particles);
                p.sendMessage("Command E");
            }
            return true;
        }
    There is no response message, main point is there is no need to remove usage, it is only used in /help
     
  7. Offline

    Lewishjames

    Please mark the thread as solved
    ICostaEx
     
Thread Status:
Not open for further replies.

Share This Page