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

How to disable a plugin.

Comments in 'Plugin Development' started by RekkuzaRage, May 31, 2015.

  1. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    252
    Minecraft User:
    RekkuzaRage
    How do I disable a plugin? Thanks.
  2. Gamecrafter
    Offline

    Gamecrafter Notable Member Plugin Developer

    Joined:
    Nov 20, 2014
    Posts:
    981
    Plugins:
    9
    PHP:
    $this->getPluginLoader()->disablePlugin($this);
    disables the plugin that runs it. For more help PM me, like this, and follow me. :D
    RekkuzaRage likes this.
  3. PixelGuy75
    Offline

    PixelGuy75 Notable Member Plugin Developer

    Joined:
    Feb 9, 2014
    Posts:
    316
    Plugins:
    2
    Minecraft User:
    PixelGuy75
    Is it a plugin you're making? Or someone else's?
  4. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    252
    Minecraft User:
    RekkuzaRage
    It is for DGxEcon, private plugin.
  5. RekkuzaRage
    Offline

    RekkuzaRage Active Member

    Joined:
    Apr 15, 2014
    Posts:
    252
    Minecraft User:
    RekkuzaRage
    Hmmm....
    It seems right after it disables itself, it ends up loading afterward.
  6. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    What if this is wrong?
    The correct one should be from PluginManager instead of PluginLoader. PluginLoader does not release the resources (e.g. commands, event handlers) used by the plugin.

Share This Page

Advertisement