Solved Get plugin.yml from other classes

Discussion in 'Plugin Development' started by shadow5353, Sep 23, 2013.

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

    shadow5353

    Hello all bukkit Developers

    How do i get the plugin.yml from other classes?
     
  2. Offline

    sgavster

    Why would you want to get the plugin.yml? Do you mean config?
     
  3. Offline

    one4me

    Do you mean the plugin.yml from other jars? If so, do you want the actual resource, or just the PluginDescriptionFile in order to get information about said plugin?
    Code:
    //Example to get the version of another plugin
    PluginDescriptionFile pdf = Bukkit.getPluginManager().getPlugin("ExamplePlugin").getDescription();
    pdf.getVersion();
    
     
    shadow5353 likes this.
  4. Offline

    shadow5353

    I have different classes to my commands and in one of them i have the version but i just did not know hot to get the plugin.yml


    Thanks :)

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
Thread Status:
Not open for further replies.

Share This Page