Last event listener?

Discussion in 'Plugin Development' started by Zidkon, Dec 23, 2011.

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

    Zidkon

    Is there a way to make My plugin with name "AAAA.jar" to be the last plugin to listen an event? I mean after all other plugins have made their changes or cancelled it, is there a way to make my plugin to last listen it to check if it was cancelled?

    Thanks :)
     
  2. Offline

    theguynextdoor

    I think if when you register the events in your main class, onEnable, plugin manager. If you set the priority to Lowest, then it should have the last say.
     
  3. Almost right, but it's Monitor.
    @Zidkon Check the sticky topic "Getting your priorities right"
     
  4. Offline

    Zidkon

    Ok I totally forgot about priorities xD

    But as well my question will be too for SAME PRIORITIES listeners of different plugins, is there any solution or way to do this?
     
  5. Offline

    ItsHarry

    I don't think that's possible, unless you add a delay
     
  6. Offline

    Zidkon

    If I add a delay then the event in question will be other event? or each EVENT will have a unique ID ? Just to say, Event will be the same Event allways ?:p
     
  7. Offline

    unicode21B9

    If you really need it, you can delay your check of the event by 1 tick, using a scheduled task. But you should not really do that, that's what Monitor is for. it might also screw up Bukkit.
     
  8. Offline

    Zidkon

    Thats right, thanks for all the helping, I hope I will never REALLY need it xD
     
Thread Status:
Not open for further replies.

Share This Page