mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Added Inventory interfaces and types, updated long array() to []
This commit is contained in:
@ -26,7 +26,7 @@ use pocketmine\Server;
|
||||
class BanList{
|
||||
|
||||
/** @var BanEntry[] */
|
||||
private $list = array();
|
||||
private $list = [];
|
||||
|
||||
/** @var string */
|
||||
private $file;
|
||||
@ -128,7 +128,7 @@ class BanList{
|
||||
}
|
||||
|
||||
public function load(){
|
||||
$this->list = array();
|
||||
$this->list = [];
|
||||
$fp = @fopen($this->file, "r");
|
||||
if(is_resource($fp)){
|
||||
while(($line = fgets($fp)) !== false){
|
||||
|
Reference in New Issue
Block a user