generated from AriasCreations/vsmodtemplate
Adds in warps
This commit is contained in:
parent
e776a6bb9e
commit
737c51989b
5 changed files with 114 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Vintagestory.API.Server;
|
||||
|
||||
namespace AriasServerUtils
|
||||
{
|
||||
|
@ -24,6 +25,19 @@ namespace AriasServerUtils
|
|||
public class Warp
|
||||
{
|
||||
public PlayerPosition Location;
|
||||
public string CreatedBy;
|
||||
public DateTime CreatedAt;
|
||||
|
||||
|
||||
public static Warp Create(IServerPlayer player)
|
||||
{
|
||||
Warp warp = new Warp();
|
||||
warp.Location = PlayerPosition.from(player.Entity);
|
||||
warp.CreatedBy = player.PlayerName;
|
||||
warp.CreatedAt = DateTime.Now;
|
||||
|
||||
return warp;
|
||||
}
|
||||
}
|
||||
|
||||
[Serializable]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue