mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 20:14:31 +00:00
Implemented new Inventory windows on Player, Chest and Furnace
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
* Plugin related classes
|
||||
*/
|
||||
namespace pocketmine\plugin;
|
||||
|
||||
use pocketmine\command\CommandExecutor;
|
||||
|
||||
|
||||
@@ -71,7 +72,7 @@ interface Plugin extends CommandExecutor{
|
||||
* Saves an embedded resource to its relative location in the data folder
|
||||
*
|
||||
* @param string $filename
|
||||
* @param bool $replace
|
||||
* @param bool $replace
|
||||
*/
|
||||
public function saveResource($filename, $replace = false);
|
||||
|
||||
|
@@ -30,7 +30,7 @@ class PluginLogger{
|
||||
*/
|
||||
public function __construct(Plugin $context){
|
||||
$prefix = $context->getDescription()->getPrefix();
|
||||
$this->pluginName = $prefix != null ? "[$prefix] " : "[".$context->getDescription()->getName()."] ";
|
||||
$this->pluginName = $prefix != null ? "[$prefix] " : "[" . $context->getDescription()->getName() . "] ";
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -148,6 +148,7 @@ class PluginManager{
|
||||
if(count($pluginCommands) > 0){
|
||||
$this->commandMap->registerAll($plugin->getDescription()->getName(), $pluginCommands);
|
||||
}
|
||||
|
||||
return $plugin;
|
||||
}
|
||||
}
|
||||
@@ -159,7 +160,7 @@ class PluginManager{
|
||||
|
||||
/**
|
||||
* @param string $directory
|
||||
* @param array $newLoaders
|
||||
* @param array $newLoaders
|
||||
*
|
||||
* @return Plugin[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user