generated from AriasCreations/vsmodtemplate
Some refactoring work
Add command aliases Begin adding the sethomemount command Part of #6
This commit is contained in:
parent
45b024654a
commit
bd12021575
5 changed files with 45 additions and 21 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue