Add / remove mods from the player list if stealth flag is set.

This commit is contained in:
SilicaAndPina 2020-12-22 03:38:33 +13:00
parent 8078554918
commit ed89bc3b1e

View file

@ -26,8 +26,7 @@ namespace HISP.Player
public bool MetaPriority = false; public bool MetaPriority = false;
public bool Stealth = false;
public int Facing; public int Facing;
public Mailbox MailBox; public Mailbox MailBox;
public Friends Friends; public Friends Friends;
@ -36,6 +35,22 @@ namespace HISP.Player
public Npc.NpcEntry LastTalkedToNpc; public Npc.NpcEntry LastTalkedToNpc;
public Shop LastShoppedAt; public Shop LastShoppedAt;
public PlayerQuests Quests; public PlayerQuests Quests;
public bool Stealth
{
get
{
return stealth;
}
set
{
if (value)
Database.RemoveOnlineUser(this.Id);
else
Database.AddOnlineUser(this.Id, this.Administrator, this.Moderator);
stealth = value;
}
}
public int ChatViolations public int ChatViolations
{ {
get get
@ -143,6 +158,7 @@ namespace HISP.Player
private int charId; private int charId;
private string profilePage; private string profilePage;
private int x; private int x;
private bool stealth = false;
private int y; private int y;
private int money; private int money;
private int questPoints; private int questPoints;