From 8228776fe748775dd2ab269688d14fad6c62f88f Mon Sep 17 00:00:00 2001 From: bnwhorton Date: Sun, 29 Nov 2020 07:07:14 -0500 Subject: [PATCH 1/2] Fix Getplayercount discription to match the rest api --- site/content/en/docs/Guides/Client SDKs/_index.md | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/site/content/en/docs/Guides/Client SDKs/_index.md b/site/content/en/docs/Guides/Client SDKs/_index.md index 856011931d..5cb3858a8b 100644 --- a/site/content/en/docs/Guides/Client SDKs/_index.md +++ b/site/content/en/docs/Guides/Client SDKs/_index.md @@ -258,14 +258,9 @@ If `GameServer.Status.Players.Capacity` is set manually through the Kubernetes A #### Alpha().GetPlayerCount() -This function returns if the playerID is currently connected to the GameServer. -This is always accurate from what has been set through this SDK, -even if the value has yet to be updated on the GameServer status resource. - -{{< alert title="Note" color="info">}} -If `GameServer.Status.Players.IDs` is set manually through the Kubernetes API, use SDK.GameServer() -or SDK.WatchGameServer() instead to retrieve the current player count. -{{< /alert >}} +This function retrieves the current player count. +This is always accurate from what has been set through this SDK, even if the value has yet to be updated on the +GameServer status resource. #### Alpha().IsPlayerConnected(playerID) From 37327455504499ec26e061bb7c9ad413898373e3 Mon Sep 17 00:00:00 2001 From: bnwhorton Date: Tue, 1 Dec 2020 21:17:04 -0500 Subject: [PATCH 2/2] Update Guides/ClientSDKS/index GetPlayerCount() add alert back in --- site/content/en/docs/Guides/Client SDKs/_index.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/site/content/en/docs/Guides/Client SDKs/_index.md b/site/content/en/docs/Guides/Client SDKs/_index.md index 5cb3858a8b..a77bae2e21 100644 --- a/site/content/en/docs/Guides/Client SDKs/_index.md +++ b/site/content/en/docs/Guides/Client SDKs/_index.md @@ -262,6 +262,11 @@ This function retrieves the current player count. This is always accurate from what has been set through this SDK, even if the value has yet to be updated on the GameServer status resource. +{{< alert title="Note" color="info">}} +If `GameServer.Status.Players.IDs` is set manually through the Kubernetes API, use SDK.GameServer() +or SDK.WatchGameServer() instead to retrieve the current player count. +{{< /alert >}} + #### Alpha().IsPlayerConnected(playerID) This function returns if the playerID is currently connected to the GameServer. This is always accurate from what has