Adds a /players chat command to Discord with the currently connected players

Supported Games
GameServerKingsGameServerKings
depends on
works with

Features

  • Add Commands For Players / Admins to use to see connected players in discord
  • The command will return an embed with up to 25 connected players each. Buttons are added to the embed to sort and page through all connected players
  • Support for multiple commands to customize how you want the embed to look and feel.
  • Support for permanent messages that are updated on a set interval

/players Default Embed

/playersadmin Default Embed

Discord Commands

  • /players -- returns a list of all the connected players
  • /playersadmin -- returns a list of all the connected players

Note: Commands can be customized in the config

Discord Command Configuration

You can read how to configure discord command channels and permissions Here

Getting Your Bot Token

Click Here to learn how to get an Discord Bot Token

Configuration

{
  "Discord Bot Token": "",
  "Command Messages": [
    {
      "Command Name (Must Be Unique)": "players",
      "Allow Command In Direct Messages": true,
      "Display Admins In The Player List": true,
      "Players Per Embed (0 - 25)": 25
    },
    {
      "Command Name (Must Be Unique)": "playersadmin",
      "Allow Command In Direct Messages": true,
      "Display Admins In The Player List": true,
      "Players Per Embed (0 - 25)": 25
    }
  ],
  "Permanent Messages": [
    {
      "Enabled": true,
      "Template Name (Must Be Unique)": "Permanent",
      "Permanent Message Channel ID": "599037479487799316",
      "Update Rate (Minutes)": 1.0,
      "Display Admins In The Player List": true,
      "Players Per Embed (0 - 25)": 25
    },
    {
      "Enabled": true,
      "Template Name (Must Be Unique)": "PermanentAdmin",
      "Permanent Message Channel ID": "927657602094092338",
      "Update Rate (Minutes)": 1.0,
      "Display Admins In The Player List": true,
      "Players Per Embed (0 - 25)": 25
    }
  ],
  "Discord Extension Log Level (Verbose, Debug, Info, Warning, Error, Exception, Off)": "Info"
}

Discord Message Configuration

You can configure Discord Message, Discord Embed, and Discord Command in the following directoryoxide\discord\DiscordPlayers

Localization

{
  "SortByEnumName": "Name",
  "SortByEnumTime": "Time"
}
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.