Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[NEW API] How can I see if there is a plugin Pocket Money?

Comments in 'Plugin Development' started by xionbig, Jun 30, 2014.

  1. xionbig
    Offline

    xionbig Active Member Plugin Developer

    Joined:
    Jun 11, 2014
    Posts:
    106
    Plugins:
    2
    Minecraft User:
    NikoZazza
    how can I see if there is a plugin Pocket Money?
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    How can I find the new API version of pocket money?
  3. xionbig
    Offline

    xionbig Active Member Plugin Developer

    Joined:
    Jun 11, 2014
    Posts:
    106
    Plugins:
    2
    Minecraft User:
    NikoZazza
  4. iFootball
    Offline

    iFootball Active Member

    Joined:
    Jun 9, 2014
    Posts:
    84
    Minecraft User:
    iFootball
    The old API, don't know it for the new but it's probably very similar.
    PHP:
    if (file_exists(DATA_PATH."plugins/PocketMoney.php"))
  5. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    A method similar to yours only checks if it exists, but if the plugin is unloaded or renamed, it won't work.

    PHP:
    if($this->getServer()->getPluginManager()->getPlugin("PocketMoney") instanceof Pluginblah();
    xionbig and iFootball like this.
  6. xionbig
    Offline

    xionbig Active Member Plugin Developer

    Joined:
    Jun 11, 2014
    Posts:
    106
    Plugins:
    2
    Minecraft User:
    NikoZazza
    thank you very much!!

Share This Page

Advertisement