aboutsummaryrefslogtreecommitdiff
path: root/commands/help.js
blob: f46cc2ce32a648b224f336955f105595f0d490d0 (plain)
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
const PREFIX = "◆"

export function help()
{
    ChatLib.chat("&b--------------[ &a&lColeweight &b]--------------")
    ChatLib.chat("&7(Hover over command to see usage.)")
    ChatLib.chat(ChatLib.getCenteredText("&a&lInfo"))
    helpCommand("", "Gets Coleweight of specified user", "(username)")
    helpCommand("help", "This menu.", "")
    helpCommand("time", "Prints time on timer (timer gui doesn't have to be visible).", "")
    helpCommand("calculate", "Calculates things. '/cw calculate help' for more info.", "")
    helpCommand("leaderboard", "Shows leaderboard.", "(min) [max]")
    helpCommand("info", "Prints coleweight info.", "")
    ChatLib.chat(ChatLib.getCenteredText("&a&lSettings"))
    helpCommand("settings", "Opens settings.", "")
    helpCommand("claim", "Claims a chollows sapphire structure in a lobby.", "(throne || spiral)")
    helpCommand("setkey", "Sets API key (can also use /api new)", "(key)")
    helpCommand("reload", "Reloads the gui.", "")
    helpCommand("track", "Sets tracked collection for collection tracker.", "(collection)")
    ChatLib.chat(ChatLib.getCenteredText("&a&lWaypoints"))
    helpCommand("coords", "Opens coords gui.", "")
    helpCommand("throne", "Guide for setting up waypoints for throne.", "[toggle]")
    helpCommand("spiral", "Guide for setting up waypoints for spiral", "[toggle]")
    helpCommand("yog", "Shows instructions for yog waypoints.", "[toggle]")
    helpCommand("divans", "Guide for setting up waypoints for Mines of Divan treasures.", "[toggle]")
    ChatLib.chat(ChatLib.getCenteredText("&a&lMiscellaneous"))
    helpCommand("drawline", "Draws a line to coords. (y defaults to the player's y)", "(x) [y] (z)")
    ChatLib.chat(`&a${PREFIX} /fetchdiscord (username) => &bGets discord of username (if linked)`)
    ChatLib.chat("&b--------------------------------------------")
}

export function helpCommand(command, desc, usage)
{  
    ChatLib.chat(new TextComponent(`&a${PREFIX} /cw ${command} => &b${desc}`).setHoverValue(`${"/cw " + command + " " + usage}`))
}