[TuT] How To Check If Another Plugin Is Enabled

Discussion in 'Resources' started by RobotA69, Aug 10, 2012.

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


    Hey guys, this is my third tutorial. Some of you may have seen my first two, but if you haven't welcome to the third, I'm Robot! I know that most/all of my plugins are outdated, but I haven't had time to update them because I have been interning with different programming companies, but I about to go back to school, so I will be doing some stuff on here for the next couple weeks.. since I've had a lot of requests, I will be updating ChatBlock by the end of the day, so watch out for that. But, if you want to hear the rest of my life story, add me on Skype (arobot69), but let's hop into the tutorial!
    1. Create a 'plugin' variable for the plugin.
    2. Check if the plugin is enabled.
    3. ???
    4. Profit!!! (Pseudocode below!)
    Step 1.
    import org
    Plugin pex this.getServer().getPluginManager().getPlugin("PermissionsEx");
    //Make sure plugin name is spelled correctly!
    Step 2.
    if(pex == null) {
    log.warning("Oh f*ck, good bye.");
    } else {
    log.info("Oh ok, cool..");
Thread Status:
Not open for further replies.

Share This Page