Some refactoring work

Add command aliases
Begin adding the sethomemount command

Part of #6
This commit is contained in:
zontreck 2025-06-05 12:18:07 -07:00
parent 45b024654a
commit bd12021575
5 changed files with 45 additions and 21 deletions

View file

@ -31,8 +31,15 @@ namespace AriasServerUtils
}
public void Merge(Entity entity)
public void Merge(Entity entity, bool unmount = true)
{
if (entity is EntityPlayer player)
{
if (unmount && player.MountedOn.Entity != null)
{
player.TryUnmount();
}
}
entity.TeleportTo(new BlockPos(X, Y, Z, Dimension));
entity.Pos.SetYaw(Yaw);
entity.Pos.Pitch = Pitch;
@ -88,6 +95,7 @@ namespace AriasServerUtils
public class Home
{
public PlayerPosition Location { get; set; }
public bool CanHaveMount = false;
public static Home MakeHome(Entity player, string homeName)
{