mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-17 08:54:22 +00:00
BanList: rename poorly-named parameter
This commit is contained in:
parent
1a21041d00
commit
2b5e6b790f
@ -166,13 +166,13 @@ class BanList{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param bool $flag
|
* @param bool $writeHeader
|
||||||
*/
|
*/
|
||||||
public function save(bool $flag = true){
|
public function save(bool $writeHeader = true){
|
||||||
$this->removeExpired();
|
$this->removeExpired();
|
||||||
$fp = @fopen($this->file, "w");
|
$fp = @fopen($this->file, "w");
|
||||||
if(is_resource($fp)){
|
if(is_resource($fp)){
|
||||||
if($flag){
|
if($writeHeader){
|
||||||
fwrite($fp, "# Updated " . strftime("%x %H:%M", time()) . " by " . Server::getInstance()->getName() . " " . Server::getInstance()->getPocketMineVersion() . "\n");
|
fwrite($fp, "# Updated " . strftime("%x %H:%M", time()) . " by " . Server::getInstance()->getName() . " " . Server::getInstance()->getPocketMineVersion() . "\n");
|
||||||
fwrite($fp, "# victim name | ban date | banned by | banned until | reason\n\n");
|
fwrite($fp, "# victim name | ban date | banned by | banned until | reason\n\n");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user