Опубліковано 7 вересня7 верес Адміністратор Call Admin Плагін для CS2, який повідомляє про гравця в грі та надсилає вебхук-повідомлення до Discord.Адміністратори можуть обробити звіт, позначивши його як оброблений. (optional)Усі звіти зберігаються в базі даних.(optional)КонфігураціяКонфігурація створюється автоматично. (Шлях: csgo/addons/counterstrikesharp/configs/plugins/CallAdmin)ГОЛОВНА"Version": 11, "ServerIpWithPort": "", "CooldownRefreshCommandSeconds": 30, "Reasons": [ "Hack", "Toxic", "Camping", "Your Custom Reason{CUSTOMREASON}" ], "ReasonsToIgnore": [ "rtv", "nominate", "timeleft" ], "WebHookUrl": "", "Debug": true = Can report yoursef "UseCenterHtmlMenu": true, "Database": { "Host": "", "Port": 3306, "User": "", "Password": "", "Name": "", "Prefix": "call_admin" }, "Commands": { "Report": { "Prefix": [ "report", "calladmin" ], "Permission": [], "FlagsToIgnore": [], // Not gonna show up on !report "CanReportPlayerAlreadyReported": { "Enabled": true, "Type": 0 = Don't check; 1 = check victim steamid AND suspect steamid; 2 = check only suspect steamid; 3 = check suspect steamid AND reason; 4 = check victim steamid AND suspect steamid AND reason "MaxTimeMinutes": 10 }, "MaximumReports": { "Enabled": true, "PlayerCanReceiveBeforeAction": 4, "ActionToDoWhenMaximumLimitReached": 0 = Nothing; 1 = Kick; 2 = Ban "IfActionIsBanThenBanForHowManyMinutes": 10; 0 = permanente "HowShouldBeChecked": 0 = Default; > 0 = Check for minutes, so if a player has PlayerCanReceiveBeforeAction in HowShouldBeChecked minutes, an ActionToDoWhenMaximumLimitReached will be called } }, "ReportHandled": { "Enabled": true, "Prefix": [ "report_handled", "handled" ], "Permission": [ "@css/ban" ], "MaxTimeMinutes": 15 }, "ReportCanceled": { "ByAuthor": { "Enabled": true, "Prefix": [ "abort", "cancel" ], "MaxTimeMinutes": 5, "DeleteOrEditEmbed": 1 = DELETE; 0 = EDIT }, "ByStaff": { "Enabled": true, "Prefix": [ "report_cancel" ], "MaxTimeMinutes": 5, "DeleteOrEditEmbed": 1 = DELETE; 0 = EDIT "Permission": [ "@css/ban" ] } } }, ПРИКЛАД ВБУДОВАННЯВи можете редагувати, як забажаєте.Ви можете створювати власні мови. Для цього просто додайте потрібну мову до вбудованого файлу та до папки «Мови», як у прикладі нижче.Ви можете передати будь-яку з наступних змінних:"MAPNAME", "HOSTNAME", "SERVERIP", "AUTHORNAME", "AUTHORSTEAMID", "AUTHORPROFILE", "TARGETNAME", "TARGETSTEAMID", "TARGETPROFILE", "ADMINNAME", "ADMINSTEAMID", "ADMINPROFILE", "IDENTIFIER", "REASON", "REPORTHANDLEDPREFIX", "CURRENTTIME""EmbedReport": { "Content": "{REPORTHANDLEDPREFIX} {Localizer|Embed.ContentReport}", "Embeds": [ { "Title": "{IDENTIFIER}", "Color": "16711680", "Description": "", "Timestamp": "", "Author": { "Name": "", "IconUrl": "", "Url": "" }, "Thumbnail": { "Url": "" }, "Image": { "Url": "" }, "Footer": { "Text": "", "IconUrl": "" }, "Fields": [ { "Name": "{Localizer|Embed.AuthorName}", "Value": "\u0060\u0060\u0060{AUTHORNAME}\u0060\u0060\u0060", "Inline": true }, { "Name": "{Localizer|Embed.AuthorSteamid}", "Value": "\u0060\u0060\u0060{AUTHORSTEAMID}\u0060\u0060\u0060", "Inline": true }, { "Name": "{Localizer|Embed.Profile}", "Value": "[{Localizer|Embed.ClickHere}]({AUTHORPROFILE})", "Inline": true }, { "Name": "-----------------------------------------------------------------------------------", "Value": "\u200B", "Inline": false }, { "Name": "{Localizer|Embed.TargetName}", "Value": "\u0060\u0060\u0060{TARGETNAME}\u0060\u0060\u0060", "Inline": true }, { "Name": "{Localizer|Embed.TargetSteamid}", "Value": "\u0060\u0060\u0060{TARGETSTEAMID}\u0060\u0060\u0060", "Inline": true }, { "Name": "{Localizer|Embed.Profile}", "Value": "[{Localizer|Embed.ClickHere}]({TARGETPROFILE})", "Inline": true }, { "Name": "-----------------------------------------------------------------------------------", "Value": "\u200B", "Inline": false }, { "Name": "{Localizer|Embed.Reason}", "Value": "\u0060\u0060\u0060{REASON}\u0060\u0060\u0060", "Inline": false }, { "Name": "\u200B", "Value": "{SERVERIP}", "Inline": false }, { "Name": "\u200B", "Value": "\u200B", "Inline": true }, { "Name": "\u200B", "Value": "\u231A {CURRENTTIME|-3|dd/MM/yyyy} | {CURRENTTIME|-3|HH:mm:ss}", "Inline": true }, { "Name": "\u200B", "Value": "\u200B", "Inline": true } ] } ] }, Командиreport- Повідомляє про гравця; ( #css/adminдля використання потрібна група)report_handled [identifier]- Позначити звіт як оброблений; ( @css/generic;@css/banдля використання потрібен прапорець)cancel- Скасувати звіт; (Повинен бути власником звіту)report_cancel [identifier]- Позначити звіт як скасований; ( @css/banдля використання потрібен прапорець)ПриміткаЩоб додати назви інших команд, просто розділіть їх символом ";" -> report;calladminПерекладиВи можете вибрати переклад у core.json counterstrikesharp або ввести !lang lang (Шлях: csgo/addons/counterstrikesharp/plugins/CallAdmin/lang){ "Prefix": "[{green}CallAdmin{default}]", "MissingCommandPermission": "{red}You don't have permission to use this command!", "NoPlayersAvailable": "There are no players available", "InCoolDown": "You are on a cooldown...wait {0} seconds and try again", "ReportSent": "Your report has been sent to the admins!", "WebhookError": "There was an error sending the webhook", "InsertIntoDatabaseError": "There was an error while inserting into database!", "InternalServerError": "There was an internal server error", "ReportNotFound": "I couldn't find this report", "MarkedAsHandledButNotInDatabase": "This report has been marked as handled on Discord but not in database!", "MarkedAsDeletedButNotInDatabase": "This report has been marked as deleted on Discord but not in database!", "ReportMarkedAsHandled": "This report has been marked as {green}handled!", "ReportMarkedAsDeleted": "This report has been marked as {green}deleted!", "PlayerAlreadyReported": "This player has already been {green}reported!", "PlayerAlreadyReportedByYourself": "This player has already been {green}reported by yourself!", "ReasonToKick": "You have been kicked off the server due to too many reports", "ReasonToBan": "You have been banned off the server due to too many reports", "CustomReason": "Type the reason for the report", "Embed.Title": "Report", "Embed.AuthorName": "Author Name", "Embed.AuthorSteamid": "Author SteamID", "Embed.TargetName": "Suspect Name", "Embed.TargetSteamid": "Suspect SteamID", "Embed.CanceledBy": "Canceled By", "Embed.AdminName": "Admin Name", "Embed.AdminSteamid": "Admin SteamID", "Embed.Reason": "Reason", "Embed.Ip": "Ip", "Embed.Map": "Map", "Embed.ClickHere": "Click Here", "Embed.Profile": "Profile", "Embed.Handled": "HANDLED", "Embed.Deleted": "DELETED", "Embed.ContentReport": "!{0} {1}** in the game to mark this report as handled. -> You can write anything here or leave it blank. Ping a member like this: <@MemberId> or a role: <@&RoleId>", "Embed.ContentReportHandled": "Handled by {0}", "Menu.ReasonsTitle": "[{green}REPORT{default}] Choose a Reason", "Menu.PlayersTitle": "[{green}REPORT{default}] Choose a Player", "Report_1": "Hacker", "Report_2": "Toxic", "Report_3": "Camping", "Report_4": "Custom Reason" } Інформація Додав Ciko Додано 07.09.25 Категорія Плагіна Перегляд файла
Приєднуйтесь до обговорення
Ви можете написати зараз та зареєструватися пізніше. Якщо у вас є обліковий запис, авторизуйтесь, щоб опублікувати від імені свого облікового запису.