using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MinecraftClient.Commands { public class Animation : Command { public override string CmdName { get { return "animation"; } } public override string CmdUsage { get { return "animation "; } } public override string CmdDesc { get { return "cmd.animation.desc"; } } public override string Run(McClient handler, string command, Dictionary localVars) { if (hasArg(command)) { string[] args = getArgs(command); if (args.Length > 0) { if (args[0] == "mainhand" || args[0] == "0") { handler.DoAnimation(0); return Translations.Get("general.done"); } else if (args[0] == "offhand" || args[0] == "1") { handler.DoAnimation(1); return Translations.Get("general.done"); } else { return GetCmdDescTranslated(); } } else { return GetCmdDescTranslated(); } } else return GetCmdDescTranslated(); } } }