diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-19 14:20:11 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-06-19 14:20:11 +0800 |
commit | cbcfacc294a8cc36de68e19049f3dd67f77a4b72 (patch) | |
tree | ae70fb67f1063a272b36f637f49b1def9b80dda8 /features/events | |
parent | 1074f35a9e1c97895c3d214fe2b403af7112284b (diff) | |
download | SoopyV2-cbcfacc294a8cc36de68e19049f3dd67f77a4b72.tar.gz SoopyV2-cbcfacc294a8cc36de68e19049f3dd67f77a4b72.tar.bz2 SoopyV2-cbcfacc294a8cc36de68e19049f3dd67f77a4b72.zip |
+ /lobbyusers command
+ error message if set an invalid keybind (doesent just crash)
Diffstat (limited to 'features/events')
-rw-r--r-- | features/events/index.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/features/events/index.js b/features/events/index.js index 5ba3710..e917d94 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -77,7 +77,11 @@ class Events extends Feature { this.warpBindDefault = new TextSetting("Default keybind", "Eg KEY_F", "KEY_F", "inquis_keybind_default", this, "", false) - this.warpBind = getKeyBindFromKey(Keyboard[this.warpBindDefault.getValue()], "Warp to nearest location to burrial guess"); + try { + this.warpBind = getKeyBindFromKey(Keyboard[this.warpBindDefault.getValue()], "Warp to nearest location to burrial guess"); + } catch (e) { + ChatLib.chat(this.FeatureManager.messagePrefix + this.warpBindDefault.getValue() + " is an invalid keyboard key, see https://legacy.lwjgl.org/javadoc/org/lwjgl/input/Keyboard.html") + } this.slayerLocationDataH = {} this.todoE = [] |