Implemented new Inventory windows on Player, Chest and Furnace

This commit is contained in:
Shoghi Cervantes
2014-05-23 20:53:06 +02:00
parent 27e82ea60a
commit 53749483c3
71 changed files with 1189 additions and 1009 deletions

View File

@@ -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);

View File

@@ -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() . "] ";
}
/**

View File

@@ -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[]
*/