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

Public Member Functions

 __construct (private Config $pocketmineYml, private Config $serverProperties)
 
 getConfigBool (string $variable, bool $defaultValue=false)
 
 getConfigInt (string $variable, int $defaultValue=0)
 
 getConfigString (string $variable, string $defaultValue="")
 
 getProperty (string $variable, mixed $defaultValue=null)
 
 getPropertyBool (string $variable, bool $defaultValue)
 
 getPropertyInt (string $variable, int $defaultValue)
 
 getPropertyString (string $variable, string $defaultValue)
 
 save ()
 
 setConfigBool (string $variable, bool $value)
 
 setConfigInt (string $variable, int $value)
 
 setConfigString (string $variable, string $value)
 

Detailed Description

Definition at line 34 of file ServerConfigGroup.php.

Constructor & Destructor Documentation

◆ __construct()

pocketmine\ServerConfigGroup::__construct ( private Config $pocketmineYml,
private Config $serverProperties )

Definition at line 41 of file ServerConfigGroup.php.

Member Function Documentation

◆ getConfigBool()

pocketmine\ServerConfigGroup::getConfigBool ( string $variable,
bool $defaultValue = false )

Definition at line 97 of file ServerConfigGroup.php.

◆ getConfigInt()

pocketmine\ServerConfigGroup::getConfigInt ( string $variable,
int $defaultValue = 0 )

Definition at line 84 of file ServerConfigGroup.php.

◆ getConfigString()

pocketmine\ServerConfigGroup::getConfigString ( string $variable,
string $defaultValue = "" )

Definition at line 71 of file ServerConfigGroup.php.

◆ getProperty()

pocketmine\ServerConfigGroup::getProperty ( string $variable,
mixed $defaultValue = null )

Definition at line 46 of file ServerConfigGroup.php.

◆ getPropertyBool()

pocketmine\ServerConfigGroup::getPropertyBool ( string $variable,
bool $defaultValue )

Definition at line 59 of file ServerConfigGroup.php.

◆ getPropertyInt()

pocketmine\ServerConfigGroup::getPropertyInt ( string $variable,
int $defaultValue )

Definition at line 63 of file ServerConfigGroup.php.

◆ getPropertyString()

pocketmine\ServerConfigGroup::getPropertyString ( string $variable,
string $defaultValue )

Definition at line 67 of file ServerConfigGroup.php.

◆ save()

pocketmine\ServerConfigGroup::save ( )

Definition at line 127 of file ServerConfigGroup.php.

◆ setConfigBool()

pocketmine\ServerConfigGroup::setConfigBool ( string $variable,
bool $value )

Definition at line 123 of file ServerConfigGroup.php.

◆ setConfigInt()

pocketmine\ServerConfigGroup::setConfigInt ( string $variable,
int $value )

Definition at line 93 of file ServerConfigGroup.php.

◆ setConfigString()

pocketmine\ServerConfigGroup::setConfigString ( string $variable,
string $value )

Definition at line 80 of file ServerConfigGroup.php.


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