private void CleanUp() { if (PseudoSeerTimerInstance != null) { PseudoSeerTimerInstance.Stop(); } // need to close all the PossessionGumps for existing PseudoSeers foreach (Mobile pseudoSeerLastCharacter in PseudoSeers.Keys.Select(account => account.GetPseudoSeerLastCharacter()) .Where(pseudoSeerLastCharacter => pseudoSeerLastCharacter != null && pseudoSeerLastCharacter.NetState != null)) { pseudoSeerLastCharacter.CloseGump(typeof(PossessGump)); } PseudoSeers.Clear(); CreaturePossession.BootAllPossessions(); }
public string GetPermissionsFor(IAccount account) { return(account != null && PseudoSeers.ContainsKey(account) ? PseudoSeers[account] : null); }