Skip to main content

OrgManagedPlayerSettings

An organization's org-managed player settings, and where it stands on the Org-Managed Players Addendum. A Crowded Kingdoms operator sets the settings; an admin of the organization accepts the addendum.

type OrgManagedPlayerSettings {
orgId: BigInt!
enabled: Boolean!
maxPlayers: BigInt!
playerCount: BigInt!
mintsPerMinute: Int!
defaultSessionTtlSeconds: Int!
maxSessionTtlSeconds: Int!
fleetSessionsEnabled: Boolean!
maxFleetSessions: Int!
maxFleetPlayers: Int!
termsVersion: String!
termsUrl: String!
termsAccepted: Boolean!
termsAcceptedVersion: String
termsAcceptedAt: DateTime
termsAcceptedByUserId: BigInt
viewerMayAcceptTerms: Boolean!
fleetSessionsOpen: Int!
}

Fields​

OrgManagedPlayerSettings.orgId ● BigInt! non-null scalar​

OrgManagedPlayerSettings.enabled ● Boolean! non-null scalar​

Whether the org may sign its own players in (mintManagedPlayerToken, exchangeManagedPlayerAssertion).

OrgManagedPlayerSettings.maxPlayers ● BigInt! non-null scalar​

How many managed players the org may hold.

OrgManagedPlayerSettings.playerCount ● BigInt! non-null scalar​

How many managed players it holds now.

OrgManagedPlayerSettings.mintsPerMinute ● Int! non-null scalar​

Sign-ins a minute, fleet-wide.

OrgManagedPlayerSettings.defaultSessionTtlSeconds ● Int! non-null scalar​

How long one sign-in lasts (seconds) when the org does not ask for less: app tokens refresh until then.

OrgManagedPlayerSettings.maxSessionTtlSeconds ● Int! non-null scalar​

The longest sign-in the org may ask for (seconds).

OrgManagedPlayerSettings.fleetSessionsEnabled ● Boolean! non-null scalar​

Whether the organization's game servers may open fleet sessions (openFleetSession): one realtime session a server, carrying the server's players. An operator switches it on; it needs org-managed players enabled too.

OrgManagedPlayerSettings.maxFleetSessions ● Int! non-null scalar​

Fleet sessions the organization may hold at once, over all its apps (512 unless an operator set another, 1 to 65,536). An organization grows by adding game servers, so an operator raises this when it needs more.

OrgManagedPlayerSettings.maxFleetPlayers ● Int! non-null scalar​

Players one fleet session may carry at once (256 unless an operator set another, 1 to 1,024). A session that is already open takes the new number at its next refresh; the maxPlayers of an open or refresh answer is the one that applies.

OrgManagedPlayerSettings.termsVersion ● String! non-null scalar​

The current version of the Org-Managed Players Addendum, which an admin of the organization accepts (acceptManagedPlayerTerms) before its players are created or signed in.

OrgManagedPlayerSettings.termsUrl ● String! non-null scalar​

Where the current addendum is published.

OrgManagedPlayerSettings.termsAccepted ● Boolean! non-null scalar​

Whether the organization has accepted the current version. Until it has, its managed players are neither created nor signed in (ORG_LEGAL_ACCEPTANCE_REQUIRED); a player signed in under an earlier acceptance keeps playing until its session expires.

OrgManagedPlayerSettings.termsAcceptedVersion ● String scalar​

The version the organization accepted most recently, or null if it never accepted one.

OrgManagedPlayerSettings.termsAcceptedAt ● DateTime scalar​

When it accepted that version.

OrgManagedPlayerSettings.termsAcceptedByUserId ● BigInt scalar​

The user id of the admin who accepted that version.

OrgManagedPlayerSettings.viewerMayAcceptTerms ● Boolean! non-null scalar​

Whether the signed-in user may accept the addendum for this organization: an admin of it, by the organization's own grant (a super admin's or an operator's access does not count).

OrgManagedPlayerSettings.fleetSessionsOpen ● Int! non-null scalar​

Fleet sessions the organization holds now, over all its apps: what maxFleetSessions is counted against. A session a killed game server left open counts until it expires or is closed (fleetSessions lists them).

Returned By​

acceptManagedPlayerTerms mutation ● orgManagedPlayerSettings query ● setOrgManagedPlayerSettings mutation