PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
|
Public Member Functions | |
__construct (private string $file) | |
add (BanEntry $entry) | |
addBan (string $target, ?string $reason=null, ?\DateTime $expires=null, ?string $source=null) | |
getEntries () | |
getEntry (string $name) | |
isBanned (string $name) | |
isEnabled () | |
load () | |
remove (string $name) | |
removeExpired () | |
save (bool $writeHeader=true) | |
setEnabled (bool $flag) | |
Definition at line 34 of file BanList.php.
pocketmine\permission\BanList::__construct | ( | private string | $file | ) |
Definition at line 40 of file BanList.php.
pocketmine\permission\BanList::add | ( | BanEntry | $entry | ) |
Definition at line 78 of file BanList.php.
pocketmine\permission\BanList::addBan | ( | string | $target, |
?string | $reason = null, | ||
?\DateTime | $expires = null, | ||
?string | $source = null ) |
Definition at line 83 of file BanList.php.
pocketmine\permission\BanList::getEntries | ( | ) |
Definition at line 61 of file BanList.php.
pocketmine\permission\BanList::getEntry | ( | string | $name | ) |
Definition at line 52 of file BanList.php.
pocketmine\permission\BanList::isBanned | ( | string | $name | ) |
Definition at line 67 of file BanList.php.
pocketmine\permission\BanList::isEnabled | ( | ) |
Definition at line 44 of file BanList.php.
pocketmine\permission\BanList::load | ( | ) |
Definition at line 111 of file BanList.php.
pocketmine\permission\BanList::remove | ( | string | $name | ) |
Definition at line 95 of file BanList.php.
pocketmine\permission\BanList::removeExpired | ( | ) |
Definition at line 103 of file BanList.php.
pocketmine\permission\BanList::save | ( | bool | $writeHeader = true | ) |
Definition at line 135 of file BanList.php.
pocketmine\permission\BanList::setEnabled | ( | bool | $flag | ) |
Definition at line 48 of file BanList.php.