Listener for a person in a certain grouping

Discussion in 'Plugin Development' started by DigitalEngine, Feb 5, 2011.

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

    DigitalEngine

    I am trying to make a plugin so that when a player in a certain group logs in it creats a note in a txt file that lists the date and time that they logged in. Then when they log out, I would like this also updated. I am working on writing the new line but I dont know what the listener should be.
     
  2. Offline

    robhol

    You can't have the trigger only for these groups - but you can get all login/logout events and check whether to deal with it there. The listener is nothing special, just find out if the player is in that group - inside of a normal handler.
     
  3. Offline

    DigitalEngine

    they are grouped using the permisons plugin
     
  4. Offline

    Mixcoatl

    In your PlayerListener.onLogin or PlayerListener.onJoin method you will check the player to see if they're in the desired group and then perform your own logic. You will repeat this for the PlayerListener.onQuit method. I'm not certain if I answered your question.
     
Thread Status:
Not open for further replies.

Share This Page