Mesharsky / Simple-Reports

[ANY] Simple report plugin
GNU General Public License v3.0
7 stars 3 forks source link

Simple Reports Plugin

A simple player reporting plugin that stores reports in a MySQL database, with Discord integration to help server admins to react faster to the reports.


Supported Games Minimum SourceMod Version
CS:GO SM 1.10+
CS:Source SM 1.10+
Team Fortress 2 SM 1.10+
Left 4 Dead 2 SM 1.10+

Other games should still work, but their gametype will be marked as unknown in the database.
If you test other games and they work properly, let me know so I can add official support for it!


FEATURES


HOW TO CONFIGURE

Read the documentation inside the config file.


INSTALLATION

Download the latest release from here.

All the extensions and required plugins are in the zip file provided.

  1. Upload all files to root directory of your server (How to install plugins)
    Make sure discord_api plugin and smjansson extension are also uploaded (both are required).

  2. This plugin requires a MySQL Database. You will need to add the connection into
    addons/sourcemod/configs/databases.cfg like below:

    "reports"
    {
        "driver"            "default"
        "host"              "database host (example: 152.325.654.245)"
        "database"          "database name"
        "user"              "database username"
        "pass"              "database password"
    }
  1. Configure plugin settings in the configuration file: addons/sourcemod/configs/reports.cfg

"How do I get the discord channel webhook?"

Please follow the official discord guide on how to get your WebHook for discord channel.


WEB ADDONS

My friend made plugin integration with Invision Community CMS Forum Software.
The plugin can be found in the web_addons folder in the repository along with installation instructions.


EXTENSIONS/LIBRARIES/INCLUDES USED

SMJansson
Discord API
MultiColors (included in the repository)


LANGUAGE SUPPORT

Currently only Polish and English have translations, if you make one for another language let me know so I can add it to the plugin.


CREDITS

Thrawn2 - Extension used in the plugin.
Deathknife - Discord Api Plugin.
Bara - Multicolors Include.
Digby - Huge help and tips how to write better code lol.