Trigger Reference of GS2-Account Script

Reference of event triggers that call extended scripts

createAccount

Event trigger to call GS2-Script before Create a new account.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account

Result

TypeRequiredDefaultValue LimitsDescription
permitbool
Allow account creation or

Implementation Example

namespace = args.namespace
account = args.account

result = {
  permit=permit
}

createAccountDone

GS2-Script called after Create a new account.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account

Result

TypeRequiredDefaultValue LimitsDescription

Implementation Example

namespace = args.namespace
account = args.account

result = {
}

authentication

Event trigger to call GS2-Script before Authentication.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account
elapsedHoursintElapsed time since last login

Result

TypeRequiredDefaultValue LimitsDescription
permitbool
Allow account authorization
forceboolfalsePass authentication even if password authentication fails

Implementation Example

namespace = args.namespace
account = args.account
elapsedHours = args.elapsedHours

result = {
  permit=permit,
  force=force
}

authenticationDone

GS2-Script called after Authentication.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account
elapsedHoursintElapsed time since last login

Result

TypeRequiredDefaultValue LimitsDescription

Implementation Example

namespace = args.namespace
account = args.account
elapsedHours = args.elapsedHours

result = {
}

ban

Event trigger to call GS2-Script before Account BAN.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account
addBanStatusBanStatusAccount BAN information to add

Result

TypeRequiredDefaultValue LimitsDescription
permitbool
Allow account BAN registration

Implementation Example

namespace = args.namespace
account = args.account
addBanStatus = args.addBanStatus

result = {
  permit=permit
}

banDone

GS2-Script called after Account BAN.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account
addBanStatusBanStatusAccount BAN information to add

Result

TypeRequiredDefaultValue LimitsDescription

Implementation Example

namespace = args.namespace
account = args.account
addBanStatus = args.addBanStatus

result = {
}

unBan

Event trigger to call GS2-Script before Account BAN cancellation.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account

Result

TypeRequiredDefaultValue LimitsDescription
permitbool
Allow account BAN cancellation

Implementation Example

namespace = args.namespace
account = args.account

result = {
  permit=permit
}

unBanDone

GS2-Script called after Account BAN cancellation.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account

Result

TypeRequiredDefaultValue LimitsDescription

Implementation Example

namespace = args.namespace
account = args.account

result = {
}

createTakeOver

Event trigger to call GS2-Script before Registration of takeover setting.

Request

TypeDescription
namespaceNamespaceNamespace
takeOverTakeOverTakeover setting
accountAccountGame Player Account

Result

TypeRequiredDefaultValue LimitsDescription
permitbool
Allow registration of takeover setting

Implementation Example

namespace = args.namespace
takeOver = args.takeOver
account = args.account

result = {
  permit=permit
}

createTakeOverDone

GS2-Script called after Registration of takeover setting.

Request

TypeDescription
namespaceNamespaceNamespace
takeOverTakeOverTakeover setting
accountAccountGame Player Account

Result

TypeRequiredDefaultValue LimitsDescription

Implementation Example

namespace = args.namespace
takeOver = args.takeOver
account = args.account

result = {
}

doTakeOver

Event trigger to call GS2-Script before Takeover.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account
takeOverTakeOverTakeover Setting

Result

TypeRequiredDefaultValue LimitsDescription
permitbool
Allow takeover execution
forceboolfalsePass authentication even if password authentication fails

Implementation Example

namespace = args.namespace
account = args.account
takeOver = args.takeOver

result = {
  permit=permit,
  force=force
}

doTakeOverDone

GS2-Script called after Takeover.

Request

TypeDescription
namespaceNamespaceNamespace
accountAccountGame Player Account
takeOverTakeOverTakeover Setting

Result

TypeRequiredDefaultValue LimitsDescription

Implementation Example

namespace = args.namespace
account = args.account
takeOver = args.takeOver

result = {
}