API
Integrate powerful features from the CS2-SimpleAdmin plugin into your Counter-Strike 2 servers. Enhance management and player moderation effortlessly. Dive into our documentation to get started!
Methods
GetPlayerInfo
Returns a PlayerInfo object about player
player
CCSPlayerController
yes
GetPlayerMuteStatus
Returns the player's current penalties
player
CCSPlayerController
yes
IssuePenalty
Execute a penalty on a player
player
CCSPlayerController
yes
admin
CCSPlayerController?
yes
penaltyType
PenaltyType
yes
reason
string
yes
duration
int
no
GetConnectionString
Returns database connection string
GetServerAddress
Returns the address of the server
GetServerId
Returns the server id
LogCommand
Log command usage to discord/file
player
CCSPlayerController?
yes
command
string
yes
LogCommand
Log command usage to discord/file
player
CCSPlayerController?
yes
command
CommandInfo
yes
Events
OnPlayerPenaltied
Performed when a penalty is executed on a player
OnPlayerPenaltiedAdded
Performed when a penalty is added to offline player
PlayerInfo class
Includes information about the player
PenaltyType enum
List of penalties
Last updated