RSSy MYGO.pl Opublikowano Sierpień 11, 2022 o 02:59 RSSy Udostępnij Opublikowano Sierpień 11, 2022 o 02:59 [ANY] Simple Reports Plugin v2 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. SourceMod translations support (currently only Polish and English have translations). 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. :shock: All the extensions and required plugins are in the zip file provided.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). 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" } 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 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. :oops: 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}" } TODO Confirm Report Menu Reminder for the players to type their custom reason if they are idle Fix mentions in EMBED messages. To display above "embed" as it's not pinging the roles. More web addons available to download CallAdmin integration CREDITS Me - I made this lmao :bacon: 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! :crab: Attached Files Simple-Reports-main.zip (120.6 KB) Wyświetl pełny artykuł Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi