PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
|
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 35 of file BanList.php.
pocketmine\permission\BanList::__construct | ( | private string | $file | ) |
Definition at line 44 of file BanList.php.
pocketmine\permission\BanList::add | ( | BanEntry | $entry | ) |
Definition at line 82 of file BanList.php.
pocketmine\permission\BanList::addBan | ( | string | $target, |
?string | $reason = null, | ||
?\DateTime | $expires = null, | ||
?string | $source = null ) |
Definition at line 87 of file BanList.php.
pocketmine\permission\BanList::getEntries | ( | ) |
Definition at line 65 of file BanList.php.
pocketmine\permission\BanList::getEntry | ( | string | $name | ) |
Definition at line 56 of file BanList.php.
pocketmine\permission\BanList::isBanned | ( | string | $name | ) |
Definition at line 71 of file BanList.php.
pocketmine\permission\BanList::isEnabled | ( | ) |
Definition at line 48 of file BanList.php.
pocketmine\permission\BanList::load | ( | ) |
Definition at line 115 of file BanList.php.
pocketmine\permission\BanList::remove | ( | string | $name | ) |
Definition at line 99 of file BanList.php.
pocketmine\permission\BanList::removeExpired | ( | ) |
Definition at line 107 of file BanList.php.
pocketmine\permission\BanList::save | ( | bool | $writeHeader = true | ) |
Definition at line 139 of file BanList.php.
pocketmine\permission\BanList::setEnabled | ( | bool | $flag | ) |
Definition at line 52 of file BanList.php.