mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-23 04:59:46 +00:00
Added ban reload()
This commit is contained in:
parent
aef32f2012
commit
c049b5fb72
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue