Leave bed command.

This commit is contained in:
Milutinke 2022-09-28 21:39:13 +02:00
parent 5571b99a03
commit 6a266c68c3
2 changed files with 21 additions and 0 deletions

View file

@ -0,0 +1,17 @@
using System.Collections.Generic;
namespace MinecraftClient.Commands
{
public class leaveBedCommand : Command
{
public override string CmdName { get { return "leavebed"; } }
public override string CmdUsage { get { return "leavebed"; } }
public override string CmdDesc { get { return "cmd.leavebed.desc"; } }
public override string Run(McClient handler, string command, Dictionary<string, object> localVars)
{
handler.SendEntityAction(Protocol.EntityActionType.LeaveBed);
return Translations.TryGet("cmd.leavebed.leaving");
}
}
}