Skip to content

Kandru/cs2-mini-admin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Important

Work in progress. Might not work as expected. Use our CS2 Update Manager to keep updated just in case :)

CounterstrikeSharp - Mini Admin

UpdateManager Compatible GitHub release License issues - cs2-mini-admin

This will be a very simple admin implementation without a database or other stuff. Simply grant admin permissions and use !kick, !ban, !mute or !unmute. Will remember players even when they reconnect.

Installation

  1. Download and extract the latest release from the GitHub releases page.
  2. Move the "MiniAdmin" folder to the /addons/counterstrikesharp/plugins/ directory.
  3. Restart the server.

Updating is even easier: simply overwrite all plugin files and they will be reloaded automatically. To automate updates please use our CS2 Update Manager.

Configuration

This plugin automatically creates a readable JSON configuration file. This configuration file can be found in /addons/counterstrikesharp/configs/plugins/MiniAdmin/MiniAdmin.json.

Commands

!kick (@miniadmin/kick)

Permission: @miniadmin/kick

Kicks a player by his name. Will provide a list of all online players if no player name was entered. Will provide a list of all matching player names to choose from. Will kick the selected player instantly.

!ban (@miniadmin/ban)

Permission: @miniadmin/ban

Bans a player by his name. Will provide a list of all online players if no player name was entered. Will provide a list of all matching player names to choose from. Will kick & ban the selected player instantly.

!unban (@miniadmin/ban)

Permission: @miniadmin/ban

Unbans a player by his Steam ID or last known name. Will provide a list of all banned players if no player name was entered. Will provide a list of all matching player names to choose from.

!mute (@miniadmin/ban)

Permission: @miniadmin/mute

Mutes a player by his name. Will provide a list of all online players if no player name was entered. Will provide a list of all matching player names to choose from. Will mute instantly.

!unmute (@miniadmin/ban)

Permission: @miniadmin/mute

Unmutes a player by his Steam ID or last known name. Will provide a list of all muted players if no player name was entered. Will provide a list of all matching player names to choose from.

!restart

Permission: @miniadmin/restart

Restarts the match by optionally providing a delay (default = 3 seconds).

!switch <t/ct/s>

Permission: @miniadmin/switch

Switches the team of the player, has the same effect as the "jointeam" console command. This follows gamemode rules, so this will usually cause a player suicide/loss of weapons.

!fswitch

Permission: @miniadmin/switch

Forcibly switches the team of the player, the player will remain alive and keep their weapons.

!respawn

Permission: @miniadmin/respawn

Respawns a given player.

!kill

Permission: @miniadmin/kill

Kills a given player.

!give

Permission: @miniadmin/give

Gives an item to a player.

Compile Yourself

Clone the project:

git clone https://github.com/Kandru/cs2-mini-admin.git

Go to the project directory

  cd cs2-mini-admin

Install dependencies

  dotnet restore

Build debug files (to use on a development game server)

  dotnet build

Build release files (to use on a production game server)

  dotnet publish

Additionally add the dependencies (if not added already for the panorama-vote-manager):

git submodule add https://github.com/Kandru/cs2-panorama-vote-manager.git
git commit -m "added panorama-vote-manager as a submodule"
git push

FAQ

TODO

License

Released under GPLv3 by @Kandru.

Authors

About

Minimalistic Admin Plugin

Topics

Resources

License

Stars

Watchers

Forks

Languages