Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved AsyncTasks - QUESTION

Comments in 'Plugin Development' started by ImagicalGamer, Sep 25, 2016.

  1. ImagicalGamer
    Offline

    ImagicalGamer Active Member

    Joined:
    Feb 25, 2016
    Posts:
    141
    Minecraft User:
    ImagicalGamer
    If I schedule an AsyncTask and then disable the plugin I scheduled it with will the task still execute? I want to auto-update one of my plugins and disable/enable it without a restart. Any help is appreciated.
  2. Gamecrafter
    Offline

    Gamecrafter

    Joined:
    Nov 20, 2014
    Posts:
    978
    Plugins:
    9
    As far as I remember, yes, AsyncTasks will run after your plugin is disabled. If this is important in behavior, you should check if the plugin is still enabled when the task completes in the onCompletion method.
    ImagicalGamer likes this.

Share This Page

Advertisement