2022-11-28 13:55:05 +08:00
|
|
|
|
using System.Collections.Generic;
|
2020-04-03 23:31:25 +08:00
|
|
|
|
|
|
|
|
|
|
namespace MinecraftClient.Commands
|
|
|
|
|
|
{
|
2020-04-04 19:18:18 +08:00
|
|
|
|
class Health : Command
|
2020-04-03 23:31:25 +08:00
|
|
|
|
{
|
2020-10-17 19:41:31 +08:00
|
|
|
|
public override string CmdName { get { return "health"; } }
|
|
|
|
|
|
public override string CmdUsage { get { return "health"; } }
|
2022-10-28 11:13:20 +08:00
|
|
|
|
public override string CmdDesc { get { return Translations.cmd_health_desc; } }
|
2020-04-03 23:31:25 +08:00
|
|
|
|
|
2022-10-02 18:31:08 +08:00
|
|
|
|
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
|
2020-04-03 23:31:25 +08:00
|
|
|
|
{
|
2022-10-28 11:13:20 +08:00
|
|
|
|
return string.Format(Translations.cmd_health_response, handler.GetHealth(), handler.GetSaturation(), handler.GetLevel(), handler.GetTotalExperience());
|
2020-04-03 23:31:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|