BanAPI - randomblink/PocketMine-MP GitHub Wiki
Command | cmdWhitelist($cmd) |
---|---|
Description | Whitelists a command so even non-ops can use it |
Parameters | Command to whitelist |
Usage | $this->api->ban->cmdWhitelist('example'); |
Command | isOp($username) |
---|---|
Description | Checks if a user is an OP |
Parameters | Username |
Return | True or False |
Usage | $this->api->ban->isOp('shoghicp'); |
Command | ban($username) |
---|---|
Description | Bans a username |
Parameters | Username |
Usage | $this->api->ban->ban('shoghicp'); |
Command | pardon($username) |
---|---|
Description | Unbans a username |
Parameters | Username |
Usage | $this->api->ban->pardon('shoghicp'); |
Command | banIP($ip) |
---|---|
Description | Ban IP |
Parameters | IP |
Usage | $this->api->ban->banIP('123.45.67.89'); |
Command | pardonIP($ip) |
---|---|
Description | Unban IP |
Parameters | IP |
Usage | $this->api->ban->pardonIP('123.45.67.89'); |
Command | kick($username, $reason) |
---|---|
Description | Kick a user |
Parameters | Username and reason (optional) |
Usage | $this->api->ban->kick('shoghicp', 'you are to good'); |
Command | reload() |
---|---|
Description | Reloads the ban configuration files |
Usage | $this->api->ban->reload(); |
Command | isIPBanned($ip) |
---|---|
Description | Check if IP is banned |
Parameters | IP |
Usage | $this->api->ban->isIPBanned('123.45.67.89'); |
Command | isBanned($username) |
---|---|
Description | Check if username is banned |
Parameters | Username |
Usage | $this->api->ban->isBanned('shoghicp'); |
Command | inWhitelist($username) |
---|---|
Description | Check if username is in whitelist |
Parameters | Username |
Return | True or False |
Usage | $this->api->ban->inWhitelist('shoghicp'); |