Solved Checking if a softdepend plugin has been loaded

Discussion in 'Plugin Development' started by ThatBenderGuy, Jan 18, 2013.

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

    ThatBenderGuy

    As the title states how do I check if a mod I specified in the softdepend section of my plugin.yml has been loaded? For instance if they try to do a command that requires a mod but they don't have it for instance send a message saying they need the mod.
     
  2. Offline

    Comphenix

    The simplest way is to simply check if the plugin exists using getPlugin():
    Code:java
    1. if (getServer().getPluginManager().getPlugin("Vault") != null) {
    2. getLogger().info("Detected Vault!");
    3. }
     
    Legendary_zotar likes this.
  3. Offline

    RainoBoy97

    I think he means a mod, not a plugin :p
     
  4. Offline

    Infamous Jeezy

    The mod would have to be created to communicate with your plugin.
    For example one of the creators of an x-ray mod made a bukkit plugin that made the the x-ray disable itself, for server owners of course. (ironic how a guy who makes a mod to cheat on minecraft does something considerate)
     
  5. Offline

    ThatBenderGuy

    Actually i did mean plugin :p
     
  6. Offline

    Comphenix

    He did mention the softdepend section of plugin.yml, which can only reference Bukkit plugins.

    Maybe he's making money off the plugin ...
     
  7. Offline

    Infamous Jeezy

    I wouldn't doubt it.
     
  8. Offline

    RainoBoy97

  9. Offline

    ThatBenderGuy

    It's alright :p with how vague some people are I can imagine the confusion and when I said mod I meant server mod. But yea sorry for the confusion
     
Thread Status:
Not open for further replies.

Share This Page