Disable a plugin at last

Discussion in 'Plugin Development' started by mickedplay, Oct 30, 2014.

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

    mickedplay

    Hey!
    Is there any way to disable a plugin at last of all other one?
    I only find how to enable plugins after other ones (depend).

    Thanks for helping! :)
     
  2. Offline

    es359

    Code:java
    1. Bukkit.getServer().getPluginManager().disablePlugin(Plugin);
    2.  


    mickedplay
     
  3. Offline

    ColonelHedgehog

    Eh, Bukkit.getServer() is redundant.
     
  4. Offline

    es359

    Explain.
     
  5. Offline

    ColonelHedgehog

    Couldn't you just do:

    Bukkit.getPluginManager().disablePlugin(Plugin);
     
  6. Offline

    es359

    I've been told that isn't the best idea. I forget from who and why, but i've always done it as Bukkit.getServer().<class> etc.
     
  7. Offline

    ColonelHedgehog

    Knowing why would be helpful. :p
     
    es359 likes this.
  8. Offline

    es359

    It was a long time ago xD lol.
     
Thread Status:
Not open for further replies.

Share This Page