Skip to main content

System Configuration Events

These events track changes to system-wide configuration including geographic settings, skins, player levels, and currencies.


onCountryInfoChanged

Triggered when country information is updated in the system.

When it fires:

  • Country settings modified in Backoffice
  • Country enabled/disabled for registration or login
FieldTypeDescription
iintegerCountry ID
sstringCountry ISO code (2-letter)
nstringCountry name
fstringPhone number format (e.g., +...(...)......)
dintegerDial code
cstringMain currency ISO code
rbooleanRegistration enabled
lbooleanLogin enabled
mintegerMinimum age to play

Example:

{
"params": {
"country": {
"i": 9,
"s": "AO",
"n": "Angola",
"f": "+...(...)......",
"d": 244,
"c": "AOA",
"r": true,
"l": false,
"m": 19
}
}
}

onStateInfoChanged

Triggered when state/region information is updated in the system.

When it fires:

  • State/region settings modified in Backoffice
  • State enabled/disabled for registration or login
FieldTypeDescription
iintegerState ID
cdiintegerState code ID
cniintegerParent country ID
nfstringFull state name
nsstringState abbreviation
rbooleanRegistration enabled
lbooleanLogin enabled
mintegerMinimum age to play

Example:

{
"params": {
"state": {
"i": 15,
"cdi": 18654,
"cni": 1,
"nf": "Oregon",
"ns": "OR",
"r": true,
"l": true,
"m": 18
}
}
}

onSkinInfoChanged

Triggered when skin (brand) information is updated in the system.

When it fires:

  • Skin settings modified in Backoffice
  • Skin enabled/disabled
  • External login configuration changed
FieldTypeDescription
idintegerSkin ID
kstringSkin key
nstringSkin name
fintegerBit flags (see below)

Skin Flags

BitValueFlagDescription
01UseExternalLoginSkin uses external authentication
12EnabledSkin is active

Example:

{
"params": {
"skin": {
"id": 7,
"k": "tmp1",
"n": "tmp1",
"f": 2
}
}
}
Flag Calculation

Flags are combined using bitwise OR. For example, f: 3 means both UseExternalLogin (1) and Enabled (2) are set.


onPlayerLevelInfoChanged

Triggered when player level information is updated in the system.

When it fires:

  • Player level settings modified in Backoffice
  • Level thresholds or permissions changed
FieldTypeDescription
iintegerPlayer level ID
ointegerOrder/sequence number
nstringLevel name
fintegerBit flags (see below)
mintegerMinimum cash amount to reach level

Player Level Flags

BitValueFlagDescription
01AllowUseChatPlayer can use chat
12AllowChangeChatColorPlayer can change chat color
24AllowChangeAvatarPlayer can change avatar

Example:

{
"params": {
"playerLevel": {
"i": 6,
"o": 7,
"n": "VIP5",
"f": 7,
"m": 1400001
}
}
}
Flag Example

f: 7 means all three flags are set (1 + 2 + 4 = 7): chat, chat color, and avatar permissions.


onCurrencyInfoChanged

Triggered when currency information is updated in the system.

When it fires:

  • Currency settings modified in Backoffice
  • Currency enabled/disabled
  • Formatting or precision changed
FieldTypeDescription
idintegerCurrency ID
astringCurrency alias (internal identifier)
mtintegerMoney type code
nstringCurrency name
ostringCurrency ISO code
fnstringFull currency name
fintegerBit flags
dstringActivation date
pintegerInternal precision (decimal places)
cintegerDisplay precision
epintegerExternal precision
rintegerRounding type
mstringDisplay format (e.g., $$$%1)
gintegerDigit grouping type
sstringDecimal separator
ustringDigit group separator
tintegerCurrency type

Digit Grouping Types

CodeTypeExample
95None1234567
65Group_every_31 234 567
66Group_once_31234 567
67Group_once_3_every_212 34 567

Currency Types

CodeType
0Universal
1Fiat
2Crypto
3PlayMoney
4Web3

Example:

{
"params": {
"currency": {
"id": 17,
"a": "mt.money-17",
"mt": 80,
"n": "PlayMMM",
"o": "PLAY",
"fn": "Play_Money",
"f": 3198071,
"d": "2024-03-06 08:51:19",
"p": 2,
"c": 2,
"ep": 2,
"r": 0,
"m": "$$$%1",
"g": 66,
"s": ".",
"u": " ",
"t": 3
}
}
}