Hiding messages from other commands

Discussion in 'Plugin Development' started by Ensign Trojan, Feb 24, 2013.

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

    Ensign Trojan

    Hey, i want to make plugin which would send message to player if he will type some command like /plugins or /pl, you know what i mean, don't you?
    i want to when player will type /plugins he would recive message from my plugin but not from other one. I think that it's possible via event priority or stuff like that but i don't know exactly how to write it, you know imma newbie.
    I'm sure that plugins like that exists but i want to add those features to my own plugin.
    Anyway i have some ideas for that but i need your help :)


    DMN now i see my grammar etc. and i just got FACEPALM but i don't want to fix this ;p I'm lazy
     
  2. Offline

    JayzaSapphire

    Use the PlayerCommandPreprocessEvent, check the command, cancel it, and send the message.
     
Thread Status:
Not open for further replies.

Share This Page