-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
38 lines (31 loc) · 1.32 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
import settings from "./utils/config";
import "./features/firstInstall";
import "./features/blockOverlay";
import "./features/terms";
import "./features/secrets";
import "./features/routes";
import "./features/dungeon";
/* ------------------- Index -------------------
Core File
I tried to doccument how it works as best as I could
------------------- To Do -------------------
- finish routes stuff
- add profit calculator
--------------------------------------------- */
//commands
register("command", (...args) => {
if (args[0] === "help") {
ChatLib.chat("&8&m-------------------------------------------------");
ChatLib.chat("&6/eclipseaddons &7main command! Aliases: &6/ea /eca");
ChatLib.chat("&6/ea help &7Opens the Eclipse Addons help menu!");
ChatLib.chat("&6/srdb &7 debug options for routes try &6/srdb help &7for more info!");
ChatLib.chat("&6/route &7 route recording try &6/route help &7for more info!");
ChatLib.chat("&8&m-------------------------------------------------");
} else if (!args || !args.length || !args[0]) {
return settings().getConfig().openGui();
} else {
ChatLib.chat("&cUnknown command. &7Try &6/ea help &7for a list of commands");
}
})
.setName("eclipseaddons")
.setAliases("ea", "eca");