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

Constructor & Destructor Documentation

◆ __construct()

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

Definition at line 41 of file PluginGraylist.php.

Member Function Documentation

◆ fromArray()

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

Definition at line 67 of file PluginGraylist.php.

◆ getPlugins()

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

Definition at line 49 of file PluginGraylist.php.

◆ isAllowed()

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

Returns whether the given name is permitted by this graylist.

Definition at line 60 of file PluginGraylist.php.

◆ isWhitelist()

pocketmine\plugin\PluginGraylist::isWhitelist ( )

Definition at line 53 of file PluginGraylist.php.

◆ toArray()

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

Definition at line 94 of file PluginGraylist.php.


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