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 players can be registered separated by commas. | string |
reason | Reason for block | string |
Communication Result
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Status" : "success"
}
Communication Result Information
Data Key | Description | Type |
---|---|---|
Status | Operation result | string |