aboutsummaryrefslogtreecommitdiff
path: root/features/globalSettings
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-19 14:20:11 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-19 14:20:11 +0800
commitcbcfacc294a8cc36de68e19049f3dd67f77a4b72 (patch)
treeae70fb67f1063a272b36f637f49b1def9b80dda8 /features/globalSettings
parent1074f35a9e1c97895c3d214fe2b403af7112284b (diff)
downloadSoopyV2-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/globalSettings')
-rw-r--r--features/globalSettings/index.js14
1 files changed, 12 insertions, 2 deletions
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)
}
})