View Single Post
Author Message
Mesharsky How2Kill
AlliedModders Donor
Join Date: May 2017
Location: Poland
Old 08-10-2022 , 22:59   [ANY] Simple Reports v2 (MySQL, Discord) + Addons
Reply With Quote #1

[ANY] Simple Reports Plugin 2.0.3

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.

It's a rewrite of this plugin: Older version of Reports

SUPPORTED GAMES
  • CS:GO
  • CS:Source
  • Team Fortress 2
  • Left 4 Dead 2 (Sound does not work)

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
  • An extensive and eye-catching configuration file.
  • MySQL database support to store reports.
  • Sourcebans integration - Sends report to sourcebans database (sb_submissions).
  • SourceMod translations support.
  • In-game admin notification (with optional sound).
  • Block unicode/UTF8 characters from Custom Reason (Customize through configuration file).
  • Full Discord Integration (Embed + Normal Messages). Fully configurable through configuration file, with completely customiseable message text.

COMMANDS
  • !report OR !zglos - Main Report Menu.
  • !reloadreports - Reload Configuration File (requires root flag).

HOW TO CONFIGURE

Read the documentation inside the config file.

INSTALLATION

Download the latest release from here.
You can also download thread files provided in .zip file but they could be out of date in the future.

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:

    PHP Code:
    "reports"
        
    {
            
    "driver"            "default"
            "host"                "database host (example: 152.325.654.245)"
            "database"            "database name"
            "user"                "database username"
            "pass"                "database password"
        

  3. 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.

    DISCORD PREVIEW


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
  • English
  • Polish
  • Russian
If you make translations for other languages let me know. I will include it in next release!

DISCORD INTEGRATION FEATURES
  • message modes - embed/normal messages.
  • bot_picture_url - Bots profile picture (url)
  • bot_name - Set your own bot name on the server
  • embed_title - Set title for the message
  • embed_field_name - Message title text (sub-header).
  • embed_color - Embed colour (in hex).
  • embed_footer - Footer message text.
  • embed_thumbnail_url - Thumbnail picture URL for the embed message.
  • Mention Roles Supported.
  • Discord message text with special values supported (List of them and guide in the configuration file)
    PHP Code:
    "Message Text"
            
    {
                
    "line" "Server: {server_name} (IP: {server_ip})"
                "line" "Player: [{client_name}]({client_profile})"
                "line" "Reported: [{reported_name}]({reported_profile})"
                "line" ""
                "line" "Reason: {report_reason}"
                "line" ""
                "line" ""
                "line" "{mentions_list}"
            


CREDITS

Me - I made this lmao
Thrawn2 - Extension used in the plugin.
Deathknife - Discord Api Plugin.
Bara - Multicolors Include.
Digby - Huge help and tips how to write better code + Annoying

Thank you and enjoy!
Attached Files
File Type: zip Simple-Reports-main.zip (120.6 KB, 224 views)
File Type: zip Simple-Reports-2.0.3-stable.zip (124.4 KB, 236 views)
__________________
If you appreciate my work you can send me a Donation

Thanks everyone for using my work!

Any requests or question please contact me on discord: Mesharsky#6565

Last edited by Mesharsky How2Kill; 10-10-2022 at 21:17.
Mesharsky How2Kill is offline