void OnPlayerDataReceived(ref HookContext ctx, ref TDSMHookArgs.PlayerDataReceived args) { // //If the player is not authenticated, then ensure they are reset // if (!AllowSSCGuestInfo && !ctx.Player.IsAuthenticated) // { // // } if (Config.WhitelistEnabled) { var name = WhiteListCommand.Prefix_WhitelistName + args.Name; var ip = WhiteListCommand.Prefix_WhitelistIp + ctx.Client.RemoteIPAddress(); if (!Whitelist.Contains(name) && !Whitelist.Contains(ip)) { ctx.SetKick(args.Name + ", You are not whitelisted"); } } }