CEngineSharp_Server.World.Content_Managers.PlayerManager.RegisterPlayer C# (CSharp) Method

RegisterPlayer() public method

public RegisterPlayer ( Player player ) : bool
player CEngineSharp_Server.World.Entities.Player
return bool
        public bool RegisterPlayer(Player player)
        {
            if (!this.AuthenticateRegistration(player.Name, player.Password)) return false;

            this.AppendPlayerName(player.Name);

            player.AccessLevel = Player.AccessLevels.Player;

            player.Save(Constants.FILEPATH_PLAYERS);

            return true;
        }