summary refs log tree commit diff homepage
path: root/src
diff options
context:
space:
mode:
authorDaniel Matthies <mageluingil@gmail.com>2021-05-17 12:58:30 -0600
committerDaniel Matthies <mageluingil@gmail.com>2021-05-17 12:58:30 -0600
commitccc8e3d182ebd05173c6a243c590eb78cff54a66 (patch)
tree3e0df4b0eacdd8d259fcc4b9c260dfeda14cd123 /src
parentFixing death message false positives (diff)
downloadshulker-ccc8e3d182ebd05173c6a243c590eb78cff54a66.tar.gz
shulker-ccc8e3d182ebd05173c6a243c590eb78cff54a66.zip
Add config deprecation notice
Diffstat (limited to '')
-rw-r--r--src/Shulker.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Shulker.ts b/src/Shulker.ts
index 4c79c78..d9373ee 100644
--- a/src/Shulker.ts
+++ b/src/Shulker.ts
@@ -8,6 +8,8 @@ class Shulker {
   discordClient: DiscordClient
   handler: Handler
 
+  readonly deprecatedConfigs: string[] = ['DEATH_KEY_WORDS'];
+
   constructor() {
   }
 
@@ -20,6 +22,12 @@ class Shulker {
       return false
     }
 
+    for (let option of this.deprecatedConfigs) {
+      if (this.config.hasOwnProperty(option)) {
+        console.log('[WARN] Using deprecated config option ' + option + '. Check README.md for current options.')
+      }
+    }
+
     if (this.config.USE_WEBHOOKS) {
       console.log('[INFO] Using Discord WebHooks to send messages')
     } else {