aboutsummaryrefslogtreecommitdiff
path: root/commands/claim.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/claim.js')
-rw-r--r--commands/claim.js5
1 files changed, 1 insertions, 4 deletions
diff --git a/commands/claim.js b/commands/claim.js
index e3f9a0d..a8c51c6 100644
--- a/commands/claim.js
+++ b/commands/claim.js
@@ -59,16 +59,12 @@ register('gameLoad', (event) => {
Client.getMinecraft().func_152347_ac().joinServer(Client.getMinecraft().func_110432_I().func_148256_e(), Client.getMinecraft().func_110432_I().func_148254_d(), serverId)
}
catch(e) {}
- // what if a player claims after gameload? idk man, making requests every worldload is hurting my server.
- // this feature is barely used anyway.
getClaimed()
})
register('worldLoad', () => {
if(!settings.claiming) return
- if(claimedServers == undefined)
- getClaimed()
setTimeout(() => {
const NetHandlerPlayClient = Client.getConnection(),
PlayerMap = NetHandlerPlayClient.func_175106_d() // getPlayerInfoMap
@@ -112,6 +108,7 @@ function getClaimed()
Client.getMinecraft().func_152347_ac().joinServer(Client.getMinecraft().func_110432_I().func_148256_e(), Client.getMinecraft().func_110432_I().func_148254_d(), serverId)
return
}
+ claimedServers = []
res.data.forEach(server => {
claimedServers.push(server)
})