aboutsummaryrefslogtreecommitdiff
path: root/render/tabList.js
diff options
context:
space:
mode:
Diffstat (limited to 'render/tabList.js')
-rw-r--r--render/tabList.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/render/tabList.js b/render/tabList.js
new file mode 100644
index 0000000..fcf971e
--- /dev/null
+++ b/render/tabList.js
@@ -0,0 +1,26 @@
+/*import axios from "../../axios" // implement when im not an idiot
+import settings from "../settings"
+import constants from "../util/constants"
+const PREFIX = constants.PREFIX
+
+
+register("worldLoad", () => {
+ const NetHandlerPlayClient = Client.getConnection(),
+ PlayerMap = NetHandlerPlayClient.func_175106_d() // getPlayerInfoMap
+ let tag = ""
+
+ axios.get(`https://ninjune.dev/api/mminers`)
+ .then((res) => {
+ PlayerMap.filter(player => !player.func_178845_a().name.startsWith("!")).forEach((player) => {
+ res.data.macroers.forEach((macroer) => {
+ if(player == macroer) tag ="[M] "
+ })
+ res.data.griefers.forEach((griefer) => {
+ if(player == griefer) tag ="[G] "
+ })
+
+ player.func_178859_a(new net.minecraft.util.IChatComponentText("Player"))
+ })
+ })
+ .catch((e) => {console.log(e)})
+})*/ \ No newline at end of file