Made some quick improvements to the add-on system. Now more customization.
$AddOnPath is the folder you want your add-on folders to be in. It can now have its own folder outside of base (default).
$MainScript is what CS file you want to load for your add-ons. Preferred are main.cs and client.cs.
So yeah, if you want this quick improvement you should take your current add-ons folder out of base and into the main @Team folder.
Also, directories are case-sensitive. Change the path name to how you want it to be cased.
// Loads add-ons in the add-ons folder
echo("Loading Add-Ons...");
$AddOnPath = "add-ons";
$MainScript = "main.cs";
nextToken($AddOnPath, "rawpath", "/");
setModPaths(getModPaths() @ ";" @ $rawpath);
for($AddOnFile = findFirstFile($AddOnPath @ "/*/" @ $MainScript); $AddOnFile !$= ""; $AddOnFile = findNextFile($AddOnPath @ "/*/" @ $MainScript))
{
echo("Loading Add-On:" SPC $AddOnFile);
exec($AddOnFile);
}