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. Offline

    Urag

    I want to get "getData()" from "Teleporting" plugin, that I have imported.
     
  2. Online

    timtower Moderator Moderator

    @Urag Get the plugin instance, check if it is the right type, cast, call the method.
     
    Urag likes this.
  3. Offline

    Urag

    @timtower
    It's easy to say for you, cause you are an good plugin developer, not like me. ;)
    I need more hints.
     
  4. Online

    timtower Moderator Moderator

    @Urag Most of it isn't related to Bukkit though.
    getPlugin
    instanceof
    cast
    call the method.
     
    Urag likes this.
  5. Offline

    Urag

    @timtower
    Can i getPlugin like that?
    Code:
    Plugin Teleporting = Bukkit.getServer().getPluginManager().getPlugin("Teleporting");
     
Thread Status:
Not open for further replies.

Share This Page