PocketMine-MP 5.21.2 git-b2aa6396c3cc2cafdd815eacc360e1ad89599899
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 34 of file BanList.php.

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 40 of file BanList.php.

Member Function Documentation

◆ add()

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

Definition at line 78 of file BanList.php.

◆ addBan()

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

Definition at line 83 of file BanList.php.

◆ getEntries()

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

Definition at line 61 of file BanList.php.

◆ getEntry()

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

Definition at line 52 of file BanList.php.

◆ isBanned()

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

Definition at line 67 of file BanList.php.

◆ isEnabled()

pocketmine\permission\BanList::isEnabled ( )

Definition at line 44 of file BanList.php.

◆ load()

pocketmine\permission\BanList::load ( )

Definition at line 111 of file BanList.php.

◆ remove()

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

Definition at line 95 of file BanList.php.

◆ removeExpired()

pocketmine\permission\BanList::removeExpired ( )

Definition at line 103 of file BanList.php.

◆ save()

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

Definition at line 135 of file BanList.php.

◆ setEnabled()

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

Definition at line 48 of file BanList.php.


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