|
PocketMine-MP 5.36.1 git-eaa7c4834c8fe2f379d24e7f0ee6cc63cfb18ccc
|
Inheritance diagram for pocketmine\plugin\PluginBase:
Collaboration diagram for pocketmine\plugin\PluginBase:Public Member Functions | |
| __construct (private Server $server, private PluginDescription $description, private string $dataFolder, private string $file, private string $resourceFolder,) | |
| getCommand (string $name) | |
| getConfig () | |
| getDataFolder () | |
| getDescription () | |
| getFile () | |
| getFullName () | |
| getLogger () | |
| getName () | |
| getResourceFolder () | |
| getResourcePath (string $filename) | |
| getResources () | |
| getScheduler () | |
| getServer () | |
| isDisabled () | |
| isEnabled () | |
| onCommand (CommandSender $sender, Command $command, string $label, array $args) | |
| onEnableStateChange (bool $enabled) | |
| reloadConfig () | |
| saveConfig () | |
| saveDefaultConfig () | |
| saveResource (string $filename, bool $replace=false) | |
Protected Member Functions | |
| onDisable () | |
| onEnable () | |
| onLoad () | |
Definition at line 51 of file PluginBase.php.
| pocketmine\plugin\PluginBase::__construct | ( | private Server | $server, |
| private PluginDescription | $description, | ||
| private string | $dataFolder, | ||
| private string | $file, | ||
| private string | $resourceFolder ) |
Definition at line 60 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getCommand | ( | string | $name | ) |
Definition at line 184 of file PluginBase.php.
References pocketmine\server().
Here is the call graph for this function:| pocketmine\plugin\PluginBase::getConfig | ( | ) |
Definition at line 267 of file PluginBase.php.
|
final |
Gets the plugin's data folder to save files and configuration. This directory name has a trailing slash.
Implements pocketmine\plugin\Plugin.
Definition at line 130 of file PluginBase.php.
|
final |
Implements pocketmine\plugin\Plugin.
Definition at line 134 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getFile | ( | ) |
Implements pocketmine\plugin\Plugin.
Definition at line 303 of file PluginBase.php.
|
final |
Definition at line 299 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getLogger | ( | ) |
Implements pocketmine\plugin\Plugin.
Definition at line 138 of file PluginBase.php.
|
final |
Implements pocketmine\plugin\Plugin.
Definition at line 295 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getResourceFolder | ( | ) |
Returns the path to the folder where the plugin's embedded resource files are usually located. Note: This is NOT the same as the data folder. The files in this folder should be considered read-only.
Definition at line 208 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getResourcePath | ( | string | $filename | ) |
Returns the full path to a data file in the plugin's resources folder. This path can be used with standard PHP functions like fopen() or file_get_contents().
Note: Any path returned by this function should be considered READ-ONLY.
Definition at line 218 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getResources | ( | ) |
Returns all the resources packaged with the plugin in the form ["path/in/resources" => SplFileInfo]
Definition at line 252 of file PluginBase.php.
| pocketmine\plugin\PluginBase::getScheduler | ( | ) |
Implements pocketmine\plugin\Plugin.
Definition at line 307 of file PluginBase.php.
|
final |
Definition at line 291 of file PluginBase.php.
|
final |
Definition at line 126 of file PluginBase.php.
|
final |
Implements pocketmine\plugin\Plugin.
Definition at line 104 of file PluginBase.php.
| pocketmine\plugin\PluginBase::onCommand | ( | CommandSender | $sender, |
| Command | $command, | ||
| string | $label, | ||
| array | $args ) |
| string[] | $args |
Implements pocketmine\command\CommandExecutor.
Definition at line 200 of file PluginBase.php.
|
protected |
Called when the plugin is disabled Use this to free open things and finish actions
Definition at line 100 of file PluginBase.php.
|
protected |
Called when the plugin is enabled
Definition at line 92 of file PluginBase.php.
|
final |
Called by the plugin manager when the plugin is enabled or disabled to inform the plugin of its enabled state.
Implements pocketmine\plugin\Plugin.
Definition at line 115 of file PluginBase.php.
|
protected |
Called when the plugin is loaded, before calling onEnable()
Definition at line 85 of file PluginBase.php.
| pocketmine\plugin\PluginBase::reloadConfig | ( | ) |
Definition at line 286 of file PluginBase.php.
| pocketmine\plugin\PluginBase::saveConfig | ( | ) |
Definition at line 275 of file PluginBase.php.
| pocketmine\plugin\PluginBase::saveDefaultConfig | ( | ) |
Definition at line 279 of file PluginBase.php.
| pocketmine\plugin\PluginBase::saveResource | ( | string | $filename, |
| bool | $replace = false ) |
Saves an embedded resource to its relative location in the data folder
Definition at line 225 of file PluginBase.php.