handmoney fix

This commit is contained in:
hydrant
2020-04-19 19:24:16 +02:00
parent a31ced3217
commit e6f3399910
2 changed files with 19 additions and 2 deletions

View File

@@ -21,6 +21,9 @@ namespace ReallifeGamemode.Database.Entities
[NotMapped]
private int _wanteds;
[NotMapped]
private int _handMoney;
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
@@ -40,7 +43,16 @@ namespace ReallifeGamemode.Database.Entities
public AdminLevel AdminLevel { get; set; }
public bool Dead { get; set; }
public int Handmoney { get; set; }
public int Handmoney
{
get => _handMoney;
set
{
_handMoney = value;
Player.TriggerEvent("SERVER:SET_HANDMONEY", value);
}
}
public float PositionX { get; set; }
public float PositionY { get; set; }