Unable to handle PlayerEvent

Discussion in 'Plugin Development' started by RcExtract, Jul 29, 2018.

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

    RcExtract

    I cannot handle (or listen) PlayerEvent because it is missing a HandlerList. Is there a way to handle all events that inherits PlayerEvent? Dont call me to handle all events in org.bukkit.event.player, since thats annoying, and PlayerEvent can be inherited out of that package. Ideas are appreciated.
     
  2. Offline

    timtower Moderator Moderator

    @RcExtract You need to listen for each event on its own.
    The PlayerEvent is an abstraction layer, not an usable event.
     
  3. Offline

    RcExtract

    Well ok...

    If i have a custom abstract event with a handlerlist, will i be possible to handle it directly?
     
  4. Offline

    timtower Moderator Moderator

    @RcExtract Then you can, but something needs to throw the event.
    What are you trying to make?
     
  5. Offline

    RcExtract

    I am trying to handle all playerevents making use of inheritance, but it doesnt seem to work.
     
  6. Offline

    timtower Moderator Moderator

    Because it is not possible
     
Thread Status:
Not open for further replies.

Share This Page