diff options
author | Ninjune <enderknight537@gmail.com> | 2022-12-07 21:36:53 -0600 |
---|---|---|
committer | Ninjune <enderknight537@gmail.com> | 2022-12-07 21:36:53 -0600 |
commit | 1ffc0a89be42fcde95a04a87cc00dbc347b27ece (patch) | |
tree | 87ef5251d1fc2a32d495daa8f6a94e173c701f8e /commands/calculate/calculate.js | |
parent | 8ad19e54f6c3f44a84dd2565d910c207ffc5bc52 (diff) | |
download | coleweight-1ffc0a89be42fcde95a04a87cc00dbc347b27ece.tar.gz coleweight-1ffc0a89be42fcde95a04a87cc00dbc347b27ece.tar.bz2 coleweight-1ffc0a89be42fcde95a04a87cc00dbc347b27ece.zip |
v1.7.0v1.7.0
Diffstat (limited to 'commands/calculate/calculate.js')
-rw-r--r-- | commands/calculate/calculate.js | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/commands/calculate/calculate.js b/commands/calculate/calculate.js new file mode 100644 index 0000000..cc4a006 --- /dev/null +++ b/commands/calculate/calculate.js @@ -0,0 +1,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) + } +} + |