ACR_ServerCommunicator.ACR_ServerCommunicator.ResolvePlayerName C# (CSharp) Method

ResolvePlayerName() private method

Look up a player by name and return the character id. The local cache (only) is queried. If the player was not in the local cache (which implies that the player was not online), then no query to the database is made and 0 is returned.
private ResolvePlayerName ( string PlayerName ) : int
PlayerName string Supplies the object name to look up. ///
return int
        private int ResolvePlayerName(string PlayerName)
        {
            lock (WorldManager)
            {
                GamePlayer Player = WorldManager.ReferencePlayerByName(PlayerName, null);

                if (Player == null)
                    return 0;

                return Player.PlayerId;
            }
        }
ACR_ServerCommunicator