Get all plugins

Discussion in 'Plugin Development' started by hammale, Dec 22, 2011.

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

    hammale

    hi all. I have a quick question, how do i get a list of all enabled plugins? There doesn't seem to be a getServer.getPlugins(). Anyone got any ideas? Thanks in advance!
     
  2. Offline

    Rahazan

    Code:java
    1. getServer().getPluginManager().getPlugins()
     
    hammale likes this.
  3. Offline

    hammale

    LOL i knew it was simple :D thx!

    well ok now that i do that i have all the plugins in an array but how do i get the name? Somthing like a
    Code:
    Plugin.getName()
    any ideas?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 22, 2016
  4. Offline

    nisovin

    plugin.getDescription().getName()

    Try this, it's useful:

    http://jd.bukkit.org/apidocs/index.html
     
    hammale likes this.
  5. Offline

    hammale

Thread Status:
Not open for further replies.

Share This Page