Solved Excecuted commands shows in chat

Discussion in 'Plugin Development' started by Skrube, Apr 15, 2014.

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


    I'm new to coding plugins and I recently made my first plugin. Everything went well this far but I got a problem now. I feel kinda stupid that I don't know what's wrong.. Hopefully you can help me!

    A picture says more than 1000 words: When I type /maps it types "/maps" under the text. That's what I want to be removed.

    My code:

    Thanks in advance!
  2. Offline


    All you need to do is add
    "return true;"
    under your send message line. (make sure you keep it within the if statement):)

    You need this because it will run through all of your code correctly and then hit the return true at the end. This causes it to think that the command wasn't run properly and sends an instructional thing to the user to tell them how to use the command.
    Skrube likes this.
  3. Offline


    Thank you! :) Problem solved.
  4. Offline


    Actually, you can "return false", but to remove the /maps message simply remove the usage line under, commands:


    //rest of stuff

    Hope this helps.
Thread Status:
Not open for further replies.

Share This Page