/DiscordStatus

Primary LanguageC#GNU General Public License v3.0GPL-3.0

Discord Status

This CSSharp plugin allows monitoring server status from discord with cute embeds and nameformat support.

Requirments

CounterStrikeSharp >= 101

Usage

  • Install plugin like u use to
  • Make a webhost server and put connect.php there if you have one(you can use free webhosting like 000webhost)* not required
  • Do the samething for map img url (or see below)
  • Load the plugin
  • Change the config (/addons/counterstrikesharp/configs/plugins/DiscordStatus)

Commands

  • css_request - @notify members to join the server
  • css_update_names - Update nameformat and updating the embed with the provided argument after the command. exmaple usage: css_update_names {FLAG}{CLAN} {NAME}: {K} - {D}
  • css_update_settings - read and update settings from config without reloading the plugin

Features

  • Displaying server status on discord
  • Showing Country Flags
  • Custom Name Formatting
  • Sorting Players by CT and T and with their respective team colors (not working if using flags)
  • Sorting Players by kills
  • different displays on Idle, with players, with players not inlined, requesting players, offline.
  • Showing Connect ip:port
  • Embeded links directing to automatically lauch steam and joins server
  • Configurable update intervals to release serverloads
  • Automatically update config and rename the old config

Config

{
  "GeneralConfig": {
    "ServerIP": "77.77.77.77:27027",
    "UpdateInterval": 30,
    "PHPURL": "https://okand.com/connect.php"
  },
  "WebhookConfig": {
    "NotifyMembersRoleID": 0,
    "NewMapNotification": true,
    "GameEndScoreboard": true,
    "NotifyWebhookURL": "https://discord.com/api/webhooks/",
    "RequestPlayersURL": "https://discord.com/api/webhooks/,https://discord.com/api/webhooks/",
    "ScoreboardURL": "https://discord.com/api/webhooks/",
    "StatusWebhookURL": "https://discord.com/api/webhooks/",
    "StatusMessageID": 0
  },
  "EmbedConfig": {
    "Title": "my cs2 server",
    "MapImg": "{MAPNAME}.jpg.png.gif",
    "OfflineImg": ".jpg.png.gif",
    "IdleImg": ".jpg.png.gif",
    "RequestImg": ".jpg.png.gif",
    "EmbedColor": "#00ffff",
    "RandomColor": true,
    "MapField": "🗺️ㅤMap",
    "OnlineField": "👥ㅤOnline",
    "CTField": "CT :ㅤ{SCORE}",
    "TField": "T :ㅤ{SCORE}",
    "MVPField": " 👑ㅤMVP ",
    "NameFormat": "{FLAG}{CLAN} {NAME}: {K} - {D}",
    "EmbedSteamLink": true,
    "RequestPlayers": "is requesting players to join the server",
    "MapChange": "Map changed to {mapname}, Join Now",
    "ServerEmpty": "Server Empty",
    "JoinHere": "👈 Join Here",
    "PlayersInline": true
  },
  "ConfigVersion": 5
}
NAME TAG FORMAT:
{NAME} = NAMES
{K} = KILLS
{D} = DEATHS
{A} = ASSISTS
{KD} = KD Ratio
{CLAN} = Clantag
{RC} = Region Code
{CC} = Country Code
{FLAG} = Country Flag

Note

For imageurl u can also use "https://image.gametracker.com/images/maps/160x120/csgo/{MAPNAME}.jpg"

Server Empty(Custom Img):

image

Server With Players(Custom Map Img / Custom Img):

image

Server With Players(With Steam hyperlinks):

image

Scoreboard Snapshot

image

Request Players:

image

Roadmap

  • Adding scoreboard snapshots