aboutsummaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js16
1 files changed, 10 insertions, 6 deletions
diff --git a/index.js b/index.js
index 7fe755a..e3bdad8 100644
--- a/index.js
+++ b/index.js
@@ -1,12 +1,15 @@
-import axios from '../axios'
+import './chat/apiNew'
+import './chat/message'
+
+import './chat/serverdata'
+import './render/tabList'
import './commandManager'
+import './util/updater'
+import './util/grieferTrack'
+import axios from '../axios'
import constants from './util/constants';
-import "./util/updater"
-import Settings from "./gui/settingsGui.js"
-
const PREFIX = constants.PREFIX
-
//world update (coords)
register("renderWorld", () => {
if(constants.throneValues[0] != undefined)
@@ -26,6 +29,7 @@ register("renderWorld", () => {
})
+
//update every second (dogshit code)
register("step", () => {
// first time check
@@ -39,7 +43,7 @@ register("step", () => {
new TextComponent(ChatLib.getCenteredText(`${PREFIX}&bView commands: /cw help`)).chat()
ChatLib.chat("")
}
- if (constants.data.api_key == undefined) return
+ if (constants.data.api_key == undefined || constants.data.api_key == "") return
// updates coleweight for gui
let date_ob = new Date(),