-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathloader.js
More file actions
58 lines (47 loc) · 1.6 KB
/
loader.js
File metadata and controls
58 lines (47 loc) · 1.6 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
com.chattriggers.ctjs.api.Config.setAutoUpdateModules(false);
com.chattriggers.ctjs.api.Config.setOpenConsoleOnError(true);
/* KEYBINDS */
import './utils/KeybindInitializer';
/* COMMANDS */
import './utils/V5Commands';
/* GUI */
import './gui/GUI';
/* CORE */
import './utils/Config';
import './utils/backend/WebSocket';
import { RequestCommandCompletionsC2S } from './utils/Packets';
register('packetSent', (packet, event) => {
if (packet.getPartialCommand().toLowerCase().startsWith('/v5')) cancel(event);
}).setFilteredClass(RequestCommandCompletionsC2S);
/* Utils */
import { MacroState } from './utils/MacroState';
import './modules/other/MacroScheduler';
import './modules/other/MacroControllers';
import './modules/other/DiscordIntegration';
import './utils/pathfinder/PathFinder';
import './utils/pathfinder/EtherwarpPathfinder';
import './utils/Clipping';
import './utils/Misc';
import './failsafes/FailsafeManager';
import './utils/V5Mod';
import './utils/SkyblockEvents';
/* Modules */
import './modules/loader';
import { loadSettings } from './gui/GuiSave';
MacroState.setupLastMacroToggleKey();
loadSettings();
import { Chat } from './utils/Chat';
import { isDeveloperModeEnabled } from './utils/DeveloperModeState';
function warnDeveloper() {
setTimeout(() => {
if (!World.isLoaded()) {
warnDeveloper();
} else {
Chat.message("&cDeveloper Mode is enabled. Run '/V5 developerMode false' to disable.");
Chat.message('&cDeveloper Mode is UAYOR and disables auto updates.');
}
}, 1000);
}
if (isDeveloperModeEnabled()) {
warnDeveloper();
}