How to get SettingsManager from another plugin?

Discussion in 'Plugin Development' started by Urag, Aug 5, 2015.

Thread Status:
Not open for further replies.
  1. I want to get "getData()" from "Teleporting" plugin, that I have imported.
     
  2. Offline

    timtower Administrator Administrator Moderator

    @Urag Get the plugin instance, check if it is the right type, cast, call the method.
     
    Urag likes this.
  3. @timtower
    It's easy to say for you, cause you are an good plugin developer, not like me. ;)
    I need more hints.
     
  4. Offline

    timtower Administrator Administrator Moderator

    @Urag Most of it isn't related to Bukkit though.
    getPlugin
    instanceof
    cast
    call the method.
     
    Urag likes this.
  5. @timtower
    Can i getPlugin like that?
    Code:
    Plugin Teleporting = Bukkit.getServer().getPluginManager().getPlugin("Teleporting");
     
Thread Status:
Not open for further replies.

Share This Page