Skip to content

CS2 Plugin to provide custom !info chat messages with all usable commands

License

Notifications You must be signed in to change notification settings

Kandru/cs2-chat-info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CounterstrikeSharp - Chat Info

UpdateManager Compatible GitHub release License issues - cs2-map-modifier

Define !info command entries a player will see when typing in !info. This allows for example to list rules, other commands, links to your website, etc.

Installation

  1. Download and extract the latest release from the GitHub releases page.
  2. Move the "ChatInfo" folder to the /addons/counterstrikesharp/plugins/ directory.
  3. Restart the server.

Updating is even easier: simply overwrite all plugin files and they will be reloaded automatically. To automate updates please use our CS2 Update Manager.

Configuration

This plugin automatically creates a readable JSON configuration file. This configuration file can be found in /addons/counterstrikesharp/configs/plugins/ChatInfo/ChatInfo.json.

{
  "enabled": true,
  "debug": false,
  "messages": {
    "!Discord": {
      "description": {
        "en": "visit https://counterstrike.party",
        "de": "besuche https://counterstrike.party"
      },
      "sub_commands": {}
    },
    "!as": {
      "description": {
        "en": "Airstrike Status",
        "de": "Status Luftunterst\u00FCtzung"
      },
      "sub_commands": {}
    },
    "!c": {
      "description": {
        "en": "Toggles the Challenge Overview",
        "de": "Challenge-\u00DCbersicht ein/aus"
      },
      "sub_commands": {}
    },
    "!cl \u003Cmapname\u003E": {
      "description": {
        "en": "Vote to change to a specific map",
        "de": "Voting f\u00FCr eine bestimmte Karte"
      },
      "sub_commands": {}
    },
    "!nom \u003Cmapname\u003E": {
      "description": {
        "en": "Nominate a map for voting",
        "de": "Nominiere eine Karte f\u00FCrs Voting"
      },
      "sub_commands": {}
    },
    "!noms": {
      "description": {
        "en": "Lists all nominations so far",
        "de": "Listet alle aktuellen Nominierungen"
      },
      "sub_commands": {}
    },
    "!rtd": {
      "description": {
        "en": "Roll The Dice",
        "de": "W\u00FCrfeln"
      },
      "sub_commands": {
        "auto": {
          "description": {
            "en": "Roll The Dice automatically",
            "de": "Automatisch w\u00FCrfeln"
          },
          "sub_commands": {}
        }
      }
    },
    "!rtv": {
      "description": {
        "en": "Rock The Vote",
        "de": "Rock The Vote"
      },
      "sub_commands": {}
    },
    "!top": {
      "description": {
        "en": "Lists players with best rankings",
        "de": "Spieler mit den h\u00F6chsten R\u00E4ngen"
      },
      "sub_commands": {}
    },
    "!topc": {
      "description": {
        "en": "Lists players with most solved Challenges",
        "de": "Spieler mit den meisten Herausforderungen"
      },
      "sub_commands": {}
    }
  },
  "ConfigVersion": 1
}

colors

You can use the official supported colors of the CSSharp Color List. Just use them as follows:

"!top": {
  "description": {
    "en": "{orange}Lists {green}players {blue}with best rankings"
  },
  "sub_commands": {}
},

Commands

Commands players can use to invoke the chat info:

  • !?
  • !commands
  • !help
  • !info

Compile Yourself

Clone the project:

git clone https://github.com/Kandru/cs2-chat-info.git

Go to the project directory

  cd cs2-chat-info

Install dependencies

  dotnet restore

Build debug files (to use on a development game server)

  dotnet build

Build release files (to use on a production game server)

  dotnet publish

FAQ

TODO

License

Released under GPLv3 by @Kandru.

Authors

About

CS2 Plugin to provide custom !info chat messages with all usable commands

Topics

Resources

License

Stars

Watchers

Forks

Languages