diff --git a/README.md b/README.md index 3a98c74..210d30b 100644 --- a/README.md +++ b/README.md @@ -110,9 +110,9 @@ The base URL for HTTP requests is: `https://api.rlpp.psynet.gg/rpc/`. > [!NOTE] > When the API refers to a "Player ID", it typically expects the following format: > ``` -> ||0 +> || > ``` -> For example, on Steam: `Steam|76561197960287930|0`. The final 0 is always included, though its purpose is unknown. +> For example, on Steam: `Steam|76561197960287930|0`. The trailing number represents the Rocket League splitscreen player index (`0` for the primary player, `1`+ for secondary local split-screen players). ###### Request ```json5 diff --git a/playerid.go b/playerid.go index 7112eec..95bfb8b 100644 --- a/playerid.go +++ b/playerid.go @@ -5,7 +5,8 @@ import ( "strings" ) -// PlayerID represents a unique player identifier in the format "Platform|ID|0" +// PlayerID represents a unique player identifier in the format "Platform|ID|SplitscreenID" +// where SplitscreenID is typically 0 for the primary player. type PlayerID string // Platform represents a gaming platform