PocketMine-MP 5.23.3 git-f7687af337d001ddbcc47b8e773f014a33faa662
Loading...
Searching...
No Matches
pocketmine\permission\BanList Class Reference
+ Collaboration diagram for pocketmine\permission\BanList:

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)
 

Detailed Description

Definition at line 35 of file BanList.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\permission\BanList::__construct ( private string $file)

Definition at line 44 of file BanList.php.

Member Function Documentation

◆ add()

pocketmine\permission\BanList::add ( BanEntry $entry)

Definition at line 82 of file BanList.php.

◆ addBan()

pocketmine\permission\BanList::addBan ( string $target,
?string $reason = null,
?\DateTime $expires = null,
?string $source = null )

Definition at line 87 of file BanList.php.

◆ getEntries()

pocketmine\permission\BanList::getEntries ( )
Returns
BanEntry[]

Definition at line 65 of file BanList.php.

◆ getEntry()

pocketmine\permission\BanList::getEntry ( string $name)

Definition at line 56 of file BanList.php.

◆ isBanned()

pocketmine\permission\BanList::isBanned ( string $name)

Definition at line 71 of file BanList.php.

◆ isEnabled()

pocketmine\permission\BanList::isEnabled ( )

Definition at line 48 of file BanList.php.

◆ load()

pocketmine\permission\BanList::load ( )

Definition at line 115 of file BanList.php.

◆ remove()

pocketmine\permission\BanList::remove ( string $name)

Definition at line 99 of file BanList.php.

◆ removeExpired()

pocketmine\permission\BanList::removeExpired ( )

Definition at line 107 of file BanList.php.

◆ save()

pocketmine\permission\BanList::save ( bool $writeHeader = true)

Definition at line 139 of file BanList.php.

◆ setEnabled()

pocketmine\permission\BanList::setEnabled ( bool $flag)

Definition at line 52 of file BanList.php.


The documentation for this class was generated from the following file: