Author Topic: How do you find all the add-ons enabled for a server  (Read 330 times)

Title says it all
how do you find out what add-ons are enabled currently?

(clientsided but for a server or serversided, i just need the add-ons enabled for the server.)

For server-sided, I think you can just check "config/server/ADD_ON_LIST.cs". It uses 1, and 0, representing true and false.

That is from RTB, you probably won't need the part for getting the title of the addon and rtb id and stuff so I removed it
Code: (modules/server/authentication.cs line 141) [Select]
   %filepath = findFirstFile("Add-Ons/*_*/server.cs");
   while(strlen(%filepath) > 0)
   {
      %zip = getSubStr(%filepath,8,strLen(%filepath)-strLen("/server.cs")-strLen("Add-Ons/"));
     
      if($AddOn__[%zip] $= 1)
      {
            //do stuf
      }
      %filepath = findNextFile("Add-Ons/*_*/server.cs");
   }