mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-12 06:25:32 +00:00
Added CommandExecutor interface to PluginBase
This commit is contained in:
parent
530d705d39
commit
1c7be84703
@ -21,12 +21,13 @@
|
|||||||
|
|
||||||
namespace PocketMine\Plugin;
|
namespace PocketMine\Plugin;
|
||||||
|
|
||||||
|
use PocketMine\Command\CommandExecutor;
|
||||||
use PocketMine\Server;
|
use PocketMine\Server;
|
||||||
use PocketMine\Utils\Config;
|
use PocketMine\Utils\Config;
|
||||||
use PocketMine\Command\CommandSender;
|
use PocketMine\Command\CommandSender;
|
||||||
use PocketMine\Command\Command;
|
use PocketMine\Command\Command;
|
||||||
|
|
||||||
abstract class PluginBase implements Plugin{
|
abstract class PluginBase implements Plugin, CommandExecutor{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var PluginLoader
|
* @var PluginLoader
|
||||||
@ -103,7 +104,15 @@ abstract class PluginBase implements Plugin{
|
|||||||
return $this->initialized;
|
return $this->initialized;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function onCommand(CommandSender $sender, Command $command, $label, $args){
|
/**
|
||||||
|
* @param CommandSender $sender
|
||||||
|
* @param Command $command
|
||||||
|
* @param string $label
|
||||||
|
* @param string[] $args
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public function onCommand(CommandSender $sender, Command $command, $label, array $args){
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user