mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
Fixed some doc problems
This commit is contained in:
@ -47,7 +47,7 @@ class PharPluginLoader implements PluginLoader{
|
||||
*
|
||||
* @param string $file
|
||||
*
|
||||
* @return Plugin
|
||||
* @return Plugin|null
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
@ -80,7 +80,7 @@ class PharPluginLoader implements PluginLoader{
|
||||
*
|
||||
* @param string $file
|
||||
*
|
||||
* @return PluginDescription
|
||||
* @return PluginDescription|null
|
||||
*/
|
||||
public function getPluginDescription($file){
|
||||
$phar = new \Phar($file);
|
||||
|
@ -45,6 +45,9 @@ interface Plugin extends CommandExecutor{
|
||||
*/
|
||||
public function onEnable();
|
||||
|
||||
/**
|
||||
* @return bool
|
||||
*/
|
||||
public function isEnabled();
|
||||
|
||||
/**
|
||||
|
@ -137,7 +137,7 @@ abstract class PluginBase implements Plugin{
|
||||
/**
|
||||
* @param string $name
|
||||
*
|
||||
* @return Command|PluginIdentifiableCommand
|
||||
* @return Command|PluginIdentifiableCommand|null
|
||||
*/
|
||||
public function getCommand($name){
|
||||
$command = $this->getServer()->getPluginCommand($name);
|
||||
@ -177,7 +177,7 @@ abstract class PluginBase implements Plugin{
|
||||
*
|
||||
* @param string $filename
|
||||
*
|
||||
* @return resource Resource data, or null
|
||||
* @return resource|null Resource data, or null
|
||||
*/
|
||||
public function getResource($filename){
|
||||
$filename = rtrim(str_replace("\\", "/", $filename), "/");
|
||||
|
@ -48,7 +48,7 @@ class ScriptPluginLoader implements PluginLoader{
|
||||
*
|
||||
* @param string $file
|
||||
*
|
||||
* @return Plugin
|
||||
* @return Plugin|null
|
||||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
@ -82,7 +82,7 @@ class ScriptPluginLoader implements PluginLoader{
|
||||
*
|
||||
* @param string $file
|
||||
*
|
||||
* @return PluginDescription
|
||||
* @return PluginDescription|null
|
||||
*/
|
||||
public function getPluginDescription($file){
|
||||
$content = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES);
|
||||
|
Reference in New Issue
Block a user