mirror of
https://github.com/MCCTeam/Minecraft-Console-Client
synced 2025-10-14 21:22:49 +00:00
Leave bed command.
This commit is contained in:
parent
5571b99a03
commit
6a266c68c3
2 changed files with 21 additions and 0 deletions
17
MinecraftClient/Commands/Leavebed.cs
Normal file
17
MinecraftClient/Commands/Leavebed.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -343,6 +343,10 @@ cmd.inventory.help.unknown=Unknown action.
|
|||
cmd.inventory.found_items=Found items
|
||||
cmd.inventory.no_found_items=Could not find the specified item in any of avaliable Inventories!
|
||||
|
||||
# Leave bed
|
||||
cmd.leavebed.desc=Used to leave a bed.
|
||||
cmd.leavebed.leaving=Leaving a bed.
|
||||
|
||||
# List
|
||||
cmd.list.desc=get the player list.
|
||||
cmd.list.players=PlayerList: {0}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue