aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
Diffstat (limited to 'features')
-rw-r--r--features/events/index.js6
-rw-r--r--features/globalSettings/index.js14
2 files changed, 17 insertions, 3 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 = []
diff --git a/features/globalSettings/index.js b/features/globalSettings/index.js
index 19f5263..e4460b0 100644
--- a/features/globalSettings/index.js
+++ b/features/globalSettings/index.js
@@ -114,6 +114,16 @@ class GlobalSettings extends Feature {
this.registerCommand("lobbyday", () => {
ChatLib.chat(this.FeatureManager.messagePrefix + "Current lobby is day " + (World.getTime() / 20 / 60 / 20).toFixed(2))
})
+ this.registerCommand("lobbyusers", () => {
+ fetch("http://soopymc.my.to/api/soopyv2/lobbyusers/" + this.FeatureManager.features["dataLoader"].class.stats.Server).json(data => {
+ ChatLib.chat("&c" + ChatLib.getChatBreak("-"))
+ ChatLib.chat(this.FeatureManager.messagePrefix + "&7(" + data.data + ")&r Lobby soopyv2 users:")
+ data.data.forEach(name => {
+ ChatLib.chat("&7 - &r" + name)
+ })
+ ChatLib.chat("&c" + ChatLib.getChatBreak("-"))
+ })
+ })
this.lastCookies = 0
@@ -131,8 +141,8 @@ class GlobalSettings extends Feature {
this.partyChatEnabled = true
- this.registerChat("&r&9Party &8> ${*}", (e)=>{
- if(!this.partyChatEnabled){
+ this.registerChat("&r&9Party &8> ${*}", (e) => {
+ if (!this.partyChatEnabled) {
cancel(e)
}
})