From cbcfacc294a8cc36de68e19049f3dd67f77a4b72 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 19 Jun 2022 14:20:11 +0800 Subject: + /lobbyusers command + error message if set an invalid keybind (doesent just crash) --- features/events/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'features/events') 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 = [] -- cgit