Quick silly question

Discussion in 'Plugin Development' started by Tster, Jan 6, 2014.

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

    Tster

    It's pretty embarrassing I have to ask this - it's been too long since I last did plugins.

    I know I could test this but some of you may know of the top of your head:
    If I cancel an event, does the code continue?
     
  2. Offline

    McMhz

    Yes, I'm pretty sure it continues unless you call return.
     
  3. Offline

    Forseth11

    Tster If you are talking about in the event in your code, yes.
     
  4. Offline

    bigteddy98

    I am not sure about this. But if you cancel an event, the other events will also be called, unless they check ignorecancelled.

    EDIT:
    If you mean within the same event: e.setCancelled(true); won't stop your code, unless you return directly after cancelling.
     
  5. Offline

    Tster

    Thanks!
     
  6. Offline

    McMhz

    No problem
     
Thread Status:
Not open for further replies.

Share This Page