blob: cc4a006165f18ae67b4e2e490994b9e0cf5ca996 (
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
36
|
import constants from "../../util/constants"
import { hotmCalc } from "./hotmCalc"
import { calcSpeed } from "./calcSpeed"
import { tick } from "./tick"
import { helpCommand } from "../help"
const PREFIX = constants.PREFIX
export function calculate(args)
{
switch(args[0].toLowerCase())
{
case "hotm":
case "hotmcalc":
case "calchotm":
hotmCalc(args[1], args[2], args[3])
break
case "tick":
tick(args[1], args[2])
break
case "calcspeed":
case "speed":
calcSpeed(args[1])
break
case "help":
ChatLib.chat("&b--------------[ &a&l/cw calculate &b]--------------")
helpCommand("calculate tick", "Calculates tick data.", "(mining speed) (('r','jade', etc) || breaking power of block))")
helpCommand("calculate speed", "Calculates the ratio of mining speed 2 to professional with a certain amount of powder.", "(powder)")
helpCommand("calculate hotm", "Calculates powder between two levels of a certain perk.", "(perk) (minlevel) [maxlevel]")
ChatLib.chat("&b------------------------------------------")
return
default:
return ChatLib.chat(constants.CALCULATEERRORMESSAGE)
}
}
|