PlayerInteractEvent

Discussion in 'Plugin Development' started by cvenomz, May 4, 2011.

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

    cvenomz

    Howdy. Ill get right to the point. I have a class that extends PlayerListener, and has overridden onPlayerJoin and onPlayerQuit successfully. However, I override onPlayerInteract, yet the method is never called. I was under the impression that if a player holds a block, or a tool, and left clicks on a block (for example) the onPlayerInteract method would be called. I placed a debug message within the method, and it is never printed. I am compiling on the latest recommended build of bukkit, and everything else seems to work. Am I doing something wrong? Or am I mistaken on what "PlayerInteract" means?

    Thanks
    Edit: Hold on, I didnt register it in the eventmanager
    Edit2: Yeah, that was my problem. Forgot to "registerEvent". Please disregard, and erm...thanks for helping me solve my problem :p
     
Thread Status:
Not open for further replies.

Share This Page