Solved How to know if a Virion is loaded

Discussion in 'Development' started by UPL, Jul 20, 2021.

  1. UPL

    UPL Silverfish

    Messages:
    15
    Hi!

    I have a question... There is a way to know if a Virion is loaded from code? (a Virion is a plugin that is open-source and requires DEViron plugin) Thanks! :)
     
    minijaham likes this.
  2. UPL

    UPL Silverfish

    Messages:
    15
    Hi guys! I solved it! Thanks!
    PHP:
    public function isVirionLoaded(Server $serverString $virionName){
        return (
    is_dir($server->getDataPath() . "virions/" $virionName "/"));
    }
     
    minijaham likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.