Rename command Status to Health

This commit is contained in:
ReinforceZwei 2020-04-04 19:18:18 +08:00 committed by ORelio
parent 975e6d4daa
commit bf86259b4b
5 changed files with 8 additions and 8 deletions

View file

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MinecraftClient.Commands
{
class Health : Command
{
public override string CMDName { get { return "status"; } }
public override string CMDDesc { get { return "status: Display Health and Food saturation."; } }
public override string Run(McTcpClient handler, string command, Dictionary<string, object> localVars)
{
return "Health: " + handler.GetHealth() + ", Saturation: " + handler.GetSaturation();
}
}
}