Skip to content

BanList ​

class · pocketmine\permission\BanList · source

Methods ​

__construct() ​

php
public function __construct(string $file)

add() ​

php
public function add(\pocketmine\permission\BanEntry $entry) : void

addBan() ​

php
public function addBan(string $target, ?string $reason = null, ?\DateTime $expires = null, ?string $source = null) : \pocketmine\permission\BanEntry

getEntries() ​

php
public function getEntries() : array

getEntry() ​

php
public function getEntry(string $name) : ?\pocketmine\permission\BanEntry

isBanned() ​

php
public function isBanned(string $name) : bool

isEnabled() ​

php
public function isEnabled() : bool

load() ​

php
public function load() : void

remove() ​

php
public function remove(string $name) : void

removeExpired() ​

php
public function removeExpired() : void

save() ​

php
public function save(bool $writeHeader = true) : void

setEnabled() ​

php
public function setEnabled(bool $flag) : void

VanillaMine is a fork of PocketMine-MP, maintained by Luxury Nodes. Not affiliated with the PMMP team or Mojang.