Block Player
Blocks a player.
Source Code
playNANOOHandlers.playerBan = function(args) {
var result = plugin['v20221001'].account.ban({
parameters : {
period : 1,
service : 'account,chat',
reason : 'message'
}
});
if(result.statusCode == 200) {
return true;
} else {
return false;
}
}
Request Parameter
| Parameter | Description | Type |
|---|---|---|
| period | Block period | integer |
| service | Block service Multiple services can be registered separated by commas. | string |
| reason | Block message | string |
Response
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "success"
}
Response Details
| Data Key | Description | Type |
|---|---|---|
| Status | Processing result | string |