You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-2
Original file line number
Diff line number
Diff line change
@@ -6,10 +6,16 @@ This plugin is used to check if players are recording demos or not.
6
6
7
7
All includes and extensions are bundled with this repository. Special thanks to [Dr. McKay](https://github.com/DoctorMcKay/sourcemod-plugins/blob/master/scripting/include/morecolors.inc) and [Sapphonie](https://github.com/sapphonie/StAC-tf2) from whom I shamelessly stole morecolors.inc and SteamWorks.inc/discord.inc (plus extensions) from.
8
8
9
+
Note: Don't like Discord? You can compile without Discord by passing `NO_DISCORD=true` to spcomp.
1. Download the plugin from the [releases page](https://github.com/ozfortres/demo-check-plugin/releases).
12
-
2. Install the `plugins/demo_check.smx` file into your `tf/addons/sourcemod/plugins` directory.
18
+
2. Install the `plugins/demo_check.smx` file or the `plugins/demo_check_no_discord.smx` file into your `tf/addons/sourcemod/plugins` directory.
13
19
3. Install the `translations/demo_check.phrases.txt` file into your `tf/addons/sourcemod/translations` directory.
14
20
4. Restart your server.
15
21
@@ -20,12 +26,13 @@ The plugin has a few cvars that can be configured:
20
26
-`sm_democheck_enabled <0/1>` - Enable or disable the plugin. Default: `1`
21
27
-`sm_democheck_onreadyup <0/1>` - Performs an additional check at ready up. Requires SoapDM to be running. Default: `0`
22
28
-`sm_democheck_warn <0/1>` - Set the plugin into warning only mode. Default: `0`. If enabled, players will be warned if they are not recording demos, but will not be kicked.
29
+
-`sm_democheck_announce_textfile <0/1>` - Log kicks to a text file (democheck.log). Default: `0`
23
30
24
31
Additionally if your use case requires different languages or links to documentation, you can modify the `demo_check.phrases.txt` file in the `translations` directory. Currently only English is supported, and existing documentation links are for ozfortress.
25
32
26
33
We've also included Discord Webhook support! Starting from version 1.1.0, you can now configure the plugin to send a message to a Discord webhook when a player is kicked for not recording demos. To enable this feature, you will need to set the following cvars:
27
34
28
-
-`sm_democheck_announce_discord <0/1>` - Enable or disable the Discord webhook feature. Default: `0`
35
+
-`sm_democheck_announce_discord <0/1>` - Enable or disable the Discord webhook feature. Default: `0`. This Cvar and feature is not included when compiled with NO_DISCORD=true
29
36
30
37
Additionally, modify `/tf/addons/sourcemod/configs/discord.cfg` with the following:
g_bDemoCheckAnnounceTextFile=CreateConVar("sm_democheck_announce_textfile", "0", "Dump failed demo checks to a text file", FCVAR_NOTIFY, true, 0.0, true, 1.0);
52
56
53
57
RegServerCmd("sm_democheck", Cmd_DemoCheck_Console, "Check if a player is recording a demo", 0);
0 commit comments