Script Trigger Reference of GS2-Account
Trigger
createAccount
Account creation
Synchronous Execution Script
The script is executed synchronously before the account creation process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow account creation |
Implementation Example
namespace = args.namespace
account = args.account
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Account creation.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
Implementation Example
namespace = args.namespace
account = args.account
result = {
}authentication
Account Authentication
Synchronous Execution Script
The script is executed synchronously before the account authentication process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
| elapsedHours | int | Elapsed time since last login |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow account authorization | ||
| force | bool | false | Pass authentication even if password authentication fails |
Implementation Example
namespace = args.namespace
account = args.account
elapsedHours = args.elapsedHours
result = {
permit=permit,
force=force
}Asynchronous Execution Script
The script executes asynchronously after the Account Authentication.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
| elapsedHours | int | Elapsed time since last login |
Implementation Example
namespace = args.namespace
account = args.account
elapsedHours = args.elapsedHours
result = {
}ban
Account BAN registration
Synchronous Execution Script
The script is executed synchronously before the account ban registration process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
| addBanStatus | BanStatus | Account BAN information to add |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow account BAN registration |
Implementation Example
namespace = args.namespace
account = args.account
addBanStatus = args.addBanStatus
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Account BAN registration.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
| addBanStatus | BanStatus | Account BAN information to add |
Implementation Example
namespace = args.namespace
account = args.account
addBanStatus = args.addBanStatus
result = {
}unBan
Account BAN cancellation
Synchronous Execution Script
The script is executed synchronously before the account ban cancellation process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow account BAN cancellation |
Implementation Example
namespace = args.namespace
account = args.account
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Account BAN cancellation.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
Implementation Example
namespace = args.namespace
account = args.account
result = {
}createTakeOver
Registration of takeover setting
Synchronous Execution Script
The script is executed synchronously before the registration of takeover setting process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| takeOver | TakeOver | Takeover setting |
| account | Account | Game Player Account |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow registration of takeover setting |
Implementation Example
namespace = args.namespace
takeOver = args.takeOver
account = args.account
result = {
permit=permit
}Asynchronous Execution Script
The script executes asynchronously after the Registration of takeover setting.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| takeOver | TakeOver | Takeover setting |
| account | Account | Game Player Account |
Implementation Example
namespace = args.namespace
takeOver = args.takeOver
account = args.account
result = {
}doTakeOver
Takeover execution
Synchronous Execution Script
The script is executed synchronously before the takeover execution process.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
| takeOver | TakeOver | Takeover Setting |
Result
| Type | Required | Default | Value Limits | Description | |
|---|---|---|---|---|---|
| permit | bool | ✓ | Whether to allow takeover execution | ||
| force | bool | false | Pass authentication even if password authentication fails |
Implementation Example
namespace = args.namespace
account = args.account
takeOver = args.takeOver
result = {
permit=permit,
force=force
}Asynchronous Execution Script
The script executes asynchronously after the Takeover execution.
Request
| Type | Description | |
|---|---|---|
| namespace | Namespace | Namespace |
| account | Account | Game Player Account |
| takeOver | TakeOver | Takeover Setting |
Implementation Example
namespace = args.namespace
account = args.account
takeOver = args.takeOver
result = {
}