Jump to content

Determine if a Mod is installed?


Recommended Posts

I remember @Dayo saying all the mods was loaded if in remember correctly.

What would be the best way to know if another mod is installed or not. 

I can check if directory exist amd load module json file amd check if information is correct. But as i said i think this information is already loaded?

Link to comment
Share on other sites



That's what i ended up finding @URBANZ so here's a snipplet for people in future

          foreach($this->page->modules as $mod)
            if($mod['name'] == "Items" && $mod['author']['name'] == "William Hughes")
              debug("FOUND YOU");


Edit: after being found, the loop should be exited. With a return or break;

Edited by Sim
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...