-
-
Notifications
You must be signed in to change notification settings - Fork 3
Building
This guide will help you build the MixScrims plugin from source code.
Before you start, make sure you have:
- Git - To clone the repository (Download Git)
- .NET 10 SDK - To build the project (Download .NET)
- Code Editor - Visual Studio, Rider, or VS Code (optional, but helpful)
Open your terminal and run:
git clone https://github.com/Shmitzas/MixScrims-SwiftlyS2.git
cd MixScrims-SwiftlyS2This downloads the project to your computer.
dotnet build -c ReleaseThis compiles the code into executable files. The -c Release flag creates an optimized version.
dotnet publish -c ReleaseThis creates the final plugin files ready to use on your server.
After publishing, you'll find your plugin files at:
Main plugin folder:
MixScrims/build/publish/MixScrims/
What's included:
- Plugin DLL files in the main folder
- Server configs in
cfg/mixscrims/ - Translation files in
resources/translations/ - API contract in
resources/exports/MixScrims.Contract.dll
-
Open the project in your preferred editor:
- Visual Studio: Open
MixScrims-SwiftlyS2.sln - VS Code: Open the folder
- Rider: Open the solution file
- Visual Studio: Open
-
Make your changes to the code
-
Test your changes by building:
dotnet build -
Publish when ready:
dotnet publish -c Release
Swiftly supports hot reload, which means you can make changes and see them without restarting the server completely. Just rebuild and the changes will load.
"dotnet command not found"
- Make sure .NET 10 SDK is installed
- Restart your terminal after installing
Build errors
- Make sure you're in the project folder
- Check that all dependencies are restored:
dotnet restore
Need help?
- Check the GitHub Issues
- Ask in GitHub Discussions
After building:
- Copy the
MixScrimsfolder frombuild/publish/to your server's Swiftly plugins directory - Configure the plugin (see Configuration)
- Restart your server
Happy coding! 🚀