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. Online

    timtower Administrator Administrator 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. Online

    timtower Administrator Administrator 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. Online

    timtower Administrator Administrator Moderator

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

Share This Page