Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Prevent Usage: /command message

Comments in 'Plugin Development' started by MyNameIsTriXz, Dec 23, 2015.

  1. MyNameIsTriXz
    Offline

    MyNameIsTriXz Notable Member

    Joined:
    Aug 17, 2015
    Posts:
    538
    Minecraft User:
    MyNameIsTriXz
    How can I prevent it, it displaxs after every command from my plugin I do? The command gets executed.
  2. PocketKiller
    Offline

    PocketKiller Notable Member

    Joined:
    Jul 20, 2015
    Posts:
    741
    do
    PHP:
    return true;
    under the command's code
    MyNameIsTriXz and AndrewBit like this.
  3. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Edit: return true after the executor has been completed. If it did nothing, return false.

Share This Page

Advertisement