2020-04-03 23:31:25 +08:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Linq;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
|
|
namespace MinecraftClient.Commands
|
|
|
|
|
|
{
|
2020-04-04 19:18:18 +08:00
|
|
|
|
class Health : Command
|
2020-04-03 23:31:25 +08:00
|
|
|
|
{
|
2020-04-07 22:49:26 +08:00
|
|
|
|
public override string CMDName { get { return "health"; } }
|
|
|
|
|
|
public override string CMDDesc { get { return "health: Display Health and Food saturation."; } }
|
2020-04-03 23:31:25 +08:00
|
|
|
|
|
|
|
|
|
|
public override string Run(McTcpClient handler, string command, Dictionary<string, object> localVars)
|
|
|
|
|
|
{
|
2020-04-04 19:18:18 +08:00
|
|
|
|
return "Health: " + handler.GetHealth() + ", Saturation: " + handler.GetSaturation();
|
2020-04-03 23:31:25 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|