Installation
Diese Anleitung hilft dir dabei, CS2-SimpleAdmin auf deinem Counter-Strike-2-Server zu installieren.
Voraussetzungen
Bevor du CS2-SimpleAdmin installierst, stelle sicher, dass die folgenden Abhängigkeiten installiert sind:
Benötigte Abhängigkeiten
- CounterStrikeSharp (v1.0.340+)
- Das Kern-Framework für CS2-Server-Plugins
- Wird von PlayerSettings benötigt
- Wird von MenuManager benötigt
- Stellt das Menüsystem bereit
Datenbank-Anforderungen
You'll need either:
- MySQL server (recommended for production)
- SQLite (built-in, good for testing)
Installationsschritte
1. Plugin herunterladen
Herunterladen the latest release from the GitHub Releases page.
Du kannst entweder:
- die fertig gebaute Release-ZIP herunterladen
- das Repository klonen und selbst aus dem Quellcode bauen
2. Dateien entpacken
Extract the downloaded files to your server's CounterStrikeSharp directory:
game/csgo/addons/counterstrikesharp/plugins/CS2-SimpleAdmin/
Deine Ordnerstruktur sollte dann ungefähr so aussehen:
csgo/
└── addons/
└── counterstrikesharp/
├── plugins/
│ └── CS2-SimpleAdmin/
│ ├── CS2-SimpleAdmin.dll
│ ├── lang/
│ └── ... (other files)
└── shared/
└── CS2-SimpleAdminApi/
└── CS2-SimpleAdminApi.dll
3. Erster Start
Starte deinen Server. Beim ersten Start wird CS2-SimpleAdmin:
- eine Konfigurationsdatei anlegen unter:
`` addons/counterstrikesharp/configs/plugins/CS2-SimpleAdmin/CS2-SimpleAdmin.json ``
- Create a database (if using SQLite):
`` addons/counterstrikesharp/plugins/CS2-SimpleAdmin/cs2-simpleadmin.sqlite ``
- Datenbank-Migrationen automatisch ausführen
4. Plugin konfigurieren
Bearbeite die erzeugte Konfigurationsdatei passend zu deinem Server.
See the Konfiguration Guide für ausführliche Informationen.
5. Server neu starten
Nach dem Bearbeiten der Konfiguration starte den Server neu oder lade das Plugin erneut:
css_plugins reload CS2-SimpleAdmin
Aus dem Quellcode bauen
Wenn du CS2-SimpleAdmin aus dem Quellcode bauen möchtest:
Voraussetzungen
- .NET 8.0 SDK
- Git
Build-Schritte
- Clone the repository:
``bash git clone https://github.com/daffyyyy/CS2-SimpleAdmin.git cd CS2-SimpleAdmin ``
- Restore dependencies:
``bash dotnet restore CS2-SimpleAdmin.sln ``
- Build the solution:
``bash dotnet build CS2-SimpleAdmin.sln -c Release ``
- Build output location:
`` CS2-SimpleAdmin/bin/Release/net8.0/ CS2-SimpleAdminApi/bin/Release/net8.0/ ``
- Copy to server:
- Copy
CS2-SimpleAdmin.dlland its dependencies toplugins/CS2-SimpleAdmin/ - Copy
CS2-SimpleAdminApi.dlltoshared/CS2-SimpleAdminApi/
Überprüfung
So prüfst du, ob die Installation erfolgreich war:
- Check Serverkonsole for the plugin load message:
`` [CS2-SimpleAdmin] Plugin loaded successfully ``
- Run an Admin-Befehl im Spiel:
`` css_admin ``
- Check the logs at:
`` addons/counterstrikesharp/logs/CS2-SimpleAdmin*.txt ``
Fehlerbehebung
Plugin doesn't load
Solution: Stelle sicher, dass alle benötigten Abhängigkeiten installiert sind:
- CounterStrikeSharp (latest version)
- AnyBaseLibCS2
- PlayerSettings
- MenuManagerCS2
Datenbank connection errors
Solution:
- For MySQL: Verify database credentials in the config file
- For SQLite: Ensure the plugin has write permissions in its directory
Befehle funktionieren nicht
Solution:
- Check that you have admin permissions configured
- Verify the commands are enabled in
Befehle.json - Check Serverkonsole for error messages
Nächste Schritte
- Configure your plugin - Set up database, permissions, and features
- Learn the commands - Browse available Admin-Befehls
- Add admins - Set up your admin team
Brauchst du Hilfe?
If you encounter issues:
- Check the GitHub Issues for similar problems
- Review server logs for error messages
- Ask for help on GitHub Discussions