Skip to content

Allows players to report another user who is breaking the community rules, this report is sent as an embed message to Discord so that administrators can respond. (for CounterStrikeSharp)

License

Notifications You must be signed in to change notification settings

wiruwiru/CallAdminSystem-CS2

Repository files navigation

CallAdminSystem CS2

Allows players to report another user who is breaking the community rules, this report is sent as an embed message to Discord so that administrators can respond.

Important

From version 2.0.0 or higher, the plugin requires the MenuManagerCS2 dependency.

CallAdminSystem.mp4

Installation

  1. Install CounterStrike Sharp and Metamod:Source
  2. Download CallAdminSystem.zip from the releases section.
  3. Install the MenuManagerCS2 dependency (required).
  4. Unzip the archive and upload it to the game server
  5. Start the server and wait for the config.json file to be generated.
  6. Complete the configuration file with the parameters of your choice.
  7. Write possible reporting reasons in reasons.txt.

Config

Parameter Description Required
WebhookUrl You must create it in the channel where you will send the notices. YES
IPandPORT Replace with the IP address of your server. YES
GetIPandPORTautomatic When you activate this option the plugin will try to get the IP:PORT of your server automatically, in case it is not possible use the IPandPORT configuration. YES
UseHostname If you set this configuration to true, the "EmbedTitle" of the translation will be replaced by the hostname you have configured in your server.cfg file. YES
CustomDomain You can replace it with your domain if you want, the connect.php file is available in the main branch. YES
MentionRoleID You must have the discord developer mode activated, right click on the role and copy its ID. YES
ReportCommands Sets the commands with which players can report other users (list of commands). YES
ClaimCommands Sets the commands with which administrators can claim reports from that server (list of commands). YES
ClaimCommandFlag Sets the permission that is needed to use the claim command YES
CommandCooldownSeconds Cooling down time for the user to be able to use the command again (in seconds). YES
MinimumPlayers Minimum players that must be connected to be able to use the command. YES
ReportEmbedColor Configure the color of the embed, you must set a hex color. Example: #eb4034 YES
ClaimEmbedColor Configure the color of the embed, you must set a hex color. Example: #100c85 YES

Configuration example

{
  "ServerSettings": {
    "IPandPORT": "45.235.99.18:27025",
    "GetIPandPORTautomatic": true,
    "UseHostname": true,
    "CustomDomain": "https://crisisgamer.com/connect",
    "MinimumPlayers": 2
  },
  "DiscordSettings": {
    "WebhookUrl": "https://discord.com/api/webhooks/xxxxx/xxxxxxxxx",
    "MentionRoleID": "1111767358881681519",
    "ReportEmbedColor": "#eb4034",
    "ClaimEmbedColor": "#100c85"
  },
  "CommandSettings": {
    "ReportCommands": [
      "css_call",
      "css_report"
    ],
    "ClaimCommands": [
      "css_claim"
    ],
    "CommandCooldownSeconds": 120
  },
  "PermissionSettings": {
    "ClaimCommandFlag": "@css/generic"
  },
  "ConfigVersion": 1
}

Reasons example

You must write one reason per line

Toxicity
Player Insults
AFK (Away From Keyboard)
Aimbot
Wallhack
Multi-Hack
Chat/Voice Spam
Map Bug

Lang configuration

In the 'lang' folder, you'll find various files. For instance, 'es.json' is designated for the Spanish language. You're welcome to modify this file to better suit your style and language preferences. The language utilized depends on your settings in 'core.json' of CounterStrikeSharp.

Custom domain configuration

To configure CustomDomain you must first upload the “connect.php” file to your web hosting, after you have done this step you must place the url of this file in the configuration file. It should look like this https://domain.com/redirect/connect.php (EXAMPLE URL). In case you don't have a web hosting you can leave the default url. You can download the connect.php file directly from here: Download connect.php.

Note: Right-click the link and select "Save link as..." to download the file directly.

Commands

!report !call - Report a player command.

!claim - Command to take reports on the server. | You need to have the default @css/generic permission to be able to use the command.

TO-DO

  • Change configuration file location
  • Move the reasons to configuration
  • Any recommendations to help improve the plugin

This project is a modification of ReportSystem

About

Allows players to report another user who is breaking the community rules, this report is sent as an embed message to Discord so that administrators can respond. (for CounterStrikeSharp)

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors 2

  •  
  •