This shouldn't be confused with our Minecraft Modpack Manager or Plugin Manager. The aforementioned systems are fully automated, and you don't need to add modpacks or plugins to them manually.

The "mod manager" will run a bash script provided to it. This allows you to do something simple like downloading and unpacking an archive into the server directory, or something more advanced like pulling the latest version of a mod from GitHub, or mount a shared directory for content in games like Garry's Mod. Below are some example use cases, but you can do pretty much anything you might need to with a little bash.

Install script would be responsible for downloading files and making necessary changes, while uninstall script would revert all the changes.

Downloading and extracting an archive

#!/bin/bash
mkdir -p /mnt/server/garrysmod/addons;cd /mnt/server/garrysmod/addons
rm -r some_folder_name
wget <https://some.website/file.zip>
unzip file.zip -d some_folder_name

Installing a mod from GitHub

Installing DarkRP from GitHub to the gamemodes folder:

#!/bin/bash
mkdir -p /mnt/server/garrysmod/gamemodes;cd /mnt/server/garrysmod/gamemodes
rm -r darkrp
git clone <https://github.com/FPtje/DarkRP.git> darkrp

Creating a file and then writing to it

You can do pretty much anything with bash, this even includes writing your own files!

#!/bin/bash
cd /mnt/server/garrysmod/addons/my_epic_addon
echo "print('hello world')
print('we can even new line')
if(using_wisp == true) then
return cool
else
return not_cool
end" > file.lua

Downloading Oxide/uMod plugins

You can get the direct download link by right-clicking on the Download button and copying the url.

#!/bin/bash
# Working directory for the script
cd oxide/plugins

#Downloads the current Discord Report Version.
wget "<https://umod.org/plugins/DiscordReport.cs>"

Downloading Sourcemod/Metamod

#!/bin/bash
# Working directory for the script
cd csgo

# Download latest 1.10 sourcemod release
curl -sSL -o sourcemod.tar.gz "<https://sourcemod.net/latest.php?os=linux&version=1.10>"
# Download latest 1.11 metamod release
curl -sSL -o metamod.tar.gz "<https://sourcemm.net/latest.php?os=linux&version=1.11>"

# Unarchive the files
tar -xf sourcemod.tar.gz
tar -xf metamod.tar.gz
# Delete the archives as they're not required anymore
rm sourcemod.tar.gz metamod.tar.gz

Uninstalling Sourcemod/Metamod

#!/bin/bash
rm -rf addons cfg/sourcemod