Added /ban, /ban-ip, /pardon, /pardon-ip

This commit is contained in:
Shoghi Cervantes
2014-03-31 05:51:42 +02:00
parent 1ff381ebf4
commit befe1c606f
9 changed files with 364 additions and 4 deletions

View File

@ -608,8 +608,12 @@ class Server{
if(file_exists($this->dataPath . "banned.txt") and !file_exists($this->dataPath . "banned-players.txt")){
@rename($this->dataPath . "banned.txt", $this->dataPath . "banned-players.txt");
}
@touch($this->dataPath . "banned-players.txt");
$this->banByName = new BanList($this->dataPath . "banned-players.txt");
$this->banByName->load();
@touch($this->dataPath . "banned-ips.txt");
$this->banByIP = new BanList($this->dataPath . "banned-ips.txt");
$this->banByIP->load();
$this->tickScheduler = new TickScheduler(20);
$this->scheduler = new ServerScheduler();