Sven Co-op has its own AngelScript plugin system built into the game, so no extra modding framework is needed. Plugins are installed on your Sven Co-op server by uploading the script file and adding it to the plugin list.
Uploading the Plugin
Plugins are .as script files. Only use plugins from sources you trust, as they run on your server.
Adding the Plugin to default_plugins.txt
The server only loads plugins listed in default_plugins.txt.
- 1In the sidebar, go to
Files. - 2Open
svencoop/default_plugins.txt. - 3Add a new
"plugin"block inside the"plugins"block.nameis any unique name you choose, andscriptis the file name without.as:"plugins" { "plugin" { "name" "MyPlugin" "script" "MyPlugin" } } - 4Save the file and start your server.
Keep any plugin blocks that are already in the file and add yours after them.
Tip
If the plugin is in a subfolder, include the folder in the script path. For example, scripts/plugins/myfolder/MyPlugin.as becomes "script" "myfolder/MyPlugin".
To turn a plugin off without deleting it, put // at the start of every line of its "plugin" block, including the braces, or remove the block. Lines starting with // are ignored. Many plugins check whether a player is a server admin, so you may also want to add admins.
