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

Public Member Functions

 __construct (array $plugins=[], bool $whitelist=false)
 
 getPlugins ()
 
 isAllowed (string $name)
 
 isWhitelist ()
 
 toArray ()
 

Static Public Member Functions

static fromArray (array $array)
 

Detailed Description

Definition at line 33 of file PluginGraylist.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\plugin\PluginGraylist::__construct ( array $plugins = [],
bool $whitelist = false )
Parameters
string[]$plugins

Definition at line 42 of file PluginGraylist.php.

Member Function Documentation

◆ fromArray()

static pocketmine\plugin\PluginGraylist::fromArray ( array $array)
static
Parameters
mixed[]$array

Definition at line 68 of file PluginGraylist.php.

◆ getPlugins()

pocketmine\plugin\PluginGraylist::getPlugins ( )
Returns
string[]

Definition at line 50 of file PluginGraylist.php.

◆ isAllowed()

pocketmine\plugin\PluginGraylist::isAllowed ( string $name)

Returns whether the given name is permitted by this graylist.

Definition at line 61 of file PluginGraylist.php.

◆ isWhitelist()

pocketmine\plugin\PluginGraylist::isWhitelist ( )

Definition at line 54 of file PluginGraylist.php.

◆ toArray()

pocketmine\plugin\PluginGraylist::toArray ( )
Returns
mixed[] @phpstan-return array<string, mixed>

Definition at line 95 of file PluginGraylist.php.


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