Skip to main content

setPlayerSpendCap

Set (or clear, by passing both limits null) one of the caller's self-set spend caps: a global or per-app daily/monthly ceiling in cents. Hitting a cap pauses that player's mods with PLAYER_SPEND_CAP until the window rolls — play is untouched. Changes replica-sync to the game runtime.

setPlayerSpendCap(
scope: String!
appId: BigInt
dailyLimitCents: BigInt
monthlyLimitCents: BigInt
): [PlayerSpendCap!]!

Arguments

setPlayerSpendCap.scope ● String! non-null scalar

'global' or 'app'.

setPlayerSpendCap.appId ● BigInt scalar

The app for app scope; omit for global.

setPlayerSpendCap.dailyLimitCents ● BigInt scalar

Daily ceiling in cents; null = no daily cap.

setPlayerSpendCap.monthlyLimitCents ● BigInt scalar

Monthly ceiling in cents; null = no monthly cap.

Type

PlayerSpendCap object

A player's self-set spend cap (06 §2a): a daily/monthly ceiling globally or per app. The effective runtime limit is min(developer policy, self-cap, wallet balance); hitting a cap pauses that player's mods with PLAYER_SPEND_CAP, never their play.