on item use

Discussion in 'Plugin Development' started by Thallo, Jan 24, 2011.

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

    Thallo

    hey!

    i am looking for the command when a player uses the wather, lava bukket and the lighter because i want to write a plugin that writes it to an text file.

    thx
    thallo
    --- merged: Jan 24, 2011 11:10 PM ---
    found it:

    main:
    pm.registerEvent(Event.Type.PLAYER_ITEM,
    this.playerListener,
    Event.Priority.Normal,
    this);

    PlayerListener:
    public void onPlayerItem (PlayerItemEvent event)
     
Thread Status:
Not open for further replies.

Share This Page