Installation

This guide will help you install CS2-SimpleAdmin on your Counter-Strike 2 server.

Prerequisites

Before installing CS2-SimpleAdmin, ensure you have the following dependencies installed:

Required Dependencies

  1. CounterStrikeSharp (v1.0.340+)
  1. AnyBaseLibCS2
  1. PlayerSettings
  1. MenuManagerCS2

Database Requirements

You'll need either:

Installation Steps

1. Download the Plugin

Download the latest release from the GitHub Releases page.

You can either:

2. Extract Files

Extract the downloaded files to your server's CounterStrikeSharp directory:

game/csgo/addons/counterstrikesharp/plugins/CS2-SimpleAdmin/

Your directory structure should look like this:

csgo/
โ””โ”€โ”€ addons/
    โ””โ”€โ”€ counterstrikesharp/
        โ”œโ”€โ”€ plugins/
        โ”‚   โ””โ”€โ”€ CS2-SimpleAdmin/
        โ”‚       โ”œโ”€โ”€ CS2-SimpleAdmin.dll
        โ”‚       โ”œโ”€โ”€ lang/
        โ”‚       โ””โ”€โ”€ ... (other files)
        โ””โ”€โ”€ shared/
            โ””โ”€โ”€ CS2-SimpleAdminApi/
                โ””โ”€โ”€ CS2-SimpleAdminApi.dll

3. First Launch

Start your server. On the first launch, CS2-SimpleAdmin will:

  1. Create a configuration file at:
  2. `` addons/counterstrikesharp/configs/plugins/CS2-SimpleAdmin/CS2-SimpleAdmin.json ``

  1. Create a database (if using SQLite):
  2. `` addons/counterstrikesharp/plugins/CS2-SimpleAdmin/cs2-simpleadmin.sqlite ``

  1. Apply database migrations automatically

4. Configure the Plugin

Edit the generated configuration file to match your server setup.

See the Configuration Guide for detailed information.

5. Restart Your Server

After editing the configuration, restart your server or reload the plugin:

css_plugins reload CS2-SimpleAdmin

Building from Source

If you want to build CS2-SimpleAdmin from source:

Prerequisites

Build Steps

  1. Clone the repository:
  2. ``bash git clone https://github.com/daffyyyy/CS2-SimpleAdmin.git cd CS2-SimpleAdmin ``

  1. Restore dependencies:
  2. ``bash dotnet restore CS2-SimpleAdmin.sln ``

  1. Build the solution:
  2. ``bash dotnet build CS2-SimpleAdmin.sln -c Release ``

  1. Build output location:
  2. `` CS2-SimpleAdmin/bin/Release/net8.0/ CS2-SimpleAdminApi/bin/Release/net8.0/ ``

  1. Copy to server:

Verification

To verify the installation was successful:

  1. Check server console for the plugin load message:
  2. `` [CS2-SimpleAdmin] Plugin loaded successfully ``

  1. Run an admin command in-game:
  2. `` css_admin ``

  1. Check the logs at:
  2. `` addons/counterstrikesharp/logs/CS2-SimpleAdmin*.txt ``

Troubleshooting

Plugin doesn't load

Solution: Ensure all required dependencies are installed:

Database connection errors

Solution:

Commands not working

Solution:

Next Steps

Need Help?

If you encounter issues:

  1. Check the GitHub Issues for similar problems
  2. Review server logs for error messages
  3. Ask for help on GitHub Discussions