Action 17: Kick Out Player
Function Description
- Scheduled to kick out a player, a successful return signifies scheduling completed.
- If the player is online, player will receive a message of "You have been logged out!"
- If the player is playing the game, it will be terminated and settled directly.
For the precise player status, please refer to
Action 52: Query In-Game Player
Parameter
Parameter | Format | Mandatory | Description |
---|---|---|---|
action | Integer | Y | 17 |
ts | Long | Y | Current system time |
parent | String(50) | Y | Agent ID |
uid | String(50) | Y | Player ID |
Example
{
"action":17,
"ts":1447452951820,
"parent":"testag",
"uid":"testpl01"
}
Return Results
Parameter | Format | Description |
---|---|---|
status | String(4) | Success: 0000 Error: See Error Codes in Appendix |
err_text | String(255) | Error message |
Operation Sample
// Http Request
http://{API_Address}/apiRequest.do?dc=jb&x=udbFVt_xv0tsAmLDpz5Z3Ct4-p0gedUPdQO-UWsfd6PHz9Ky-wM3mIC9El4kwl_SlX3lpraVaCLnp-K0WsgKmpYTV9XpYncHzbtvn591qfaAwpGyOvsS4v1Yj7OvpRw_iU4554RuSsvHpI9jaj4XUgTK5yzbWKEddANjAAbxF0s=
// Http Response (success)
{
"status":"0000"
}
// Http Response (error)
{
"status":"9005",
"err_text":"Assertion(SAML) didn't pass the timestamp validation."
}