How check if a command is executed ?

Discussion in 'Plugin Development' started by sbeex, Sep 7, 2012.

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

    sbeex

    Hello,

    for my players stats I would like to save how many times they went into jail.

    Is it possible to catch a command (ie : "/jail") before it is called ?

    Or maybe do you have a solution without edit the jails plugin source code ?

    Thank's in advance for your attention
     

  2. yes, use playerPreCommandEvent (something simulair my to, I an not an fail proof robot)
     
    sbeex likes this.
  3. Offline

    Seadragon91

    Correct event name is: PlayerCommandPreprocessEvent
     
    sbeex likes this.
  4. Offline

    sbeex

    Thank you very much !
     
Thread Status:
Not open for further replies.

Share This Page