Solved How to pause the Events

Discussion in 'Plugin Development' started by TGF, Oct 21, 2012.

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

    TGF

    Hello:p My question is simple. How to pause an Event?
     
  2. Offline

    CorrieKay

    You cant pause an event without freezing the main server thread.

    Do you mean you want to stop responding to an event for a specific amount of time, or something?
     
  3. Offline

    TGF

    For example, I have

    void onPlaceBlock(){
    //pause event or somethin:p - dont blace block
    //do action - for ex. execute my command or function
    //resume event - place block
    }
     
  4. Offline

    CorrieKay

    thats kinda how events fire anyways. The event is fired before the action takes place. thats how so many of the events are cancellable :p
     
  5. Offline

    TGF

    Thanks for answer:p
     
Thread Status:
Not open for further replies.

Share This Page