mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-07 04:17:07 +00:00
Added ban reload()
This commit is contained in:
parent
aef32f2012
commit
c049b5fb72
@ -181,6 +181,12 @@ class BanAPI{
|
|||||||
$this->commandHandler("banip", array("pardon", $ip));
|
$this->commandHandler("banip", array("pardon", $ip));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function reload(){
|
||||||
|
$this->commandHandler("ban", array("reload"));
|
||||||
|
$this->commandHandler("banip", array("reload"));
|
||||||
|
$this->commandHandler("whitelist", array("reload"));
|
||||||
|
}
|
||||||
|
|
||||||
public function isIPBanned($ip){
|
public function isIPBanned($ip){
|
||||||
if($this->server->api->dhandle("api.ban.ip.check", $ip) === false){
|
if($this->server->api->dhandle("api.ban.ip.check", $ip) === false){
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user