Minecraft-Console-Client/MinecraftClient/Commands/Health.cs

17 lines
634 B
C#
Raw Normal View History

using System.Collections.Generic;
namespace MinecraftClient.Commands
{
2020-04-04 19:18:18 +08:00
class Health : Command
{
public override string CmdName { get { return "health"; } }
public override string CmdUsage { get { return "health"; } }
public override string CmdDesc { get { return Translations.cmd_health_desc; } }
public override string Run(McClient handler, string command, Dictionary<string, object>? localVars)
{
return string.Format(Translations.cmd_health_response, handler.GetHealth(), handler.GetSaturation(), handler.GetLevel(), handler.GetTotalExperience());
}
}
}