mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-21 02:16:33 +00:00
Command: add @throws CommandException
This commit is contained in:
parent
c346c45d42
commit
65529ff2ce
@ -26,6 +26,7 @@ declare(strict_types=1);
|
|||||||
*/
|
*/
|
||||||
namespace pocketmine\command;
|
namespace pocketmine\command;
|
||||||
|
|
||||||
|
use pocketmine\command\utils\CommandException;
|
||||||
use pocketmine\lang\TextContainer;
|
use pocketmine\lang\TextContainer;
|
||||||
use pocketmine\lang\TranslationContainer;
|
use pocketmine\lang\TranslationContainer;
|
||||||
use pocketmine\permission\PermissionManager;
|
use pocketmine\permission\PermissionManager;
|
||||||
@ -92,6 +93,7 @@ abstract class Command{
|
|||||||
* @param string[] $args
|
* @param string[] $args
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return mixed
|
||||||
|
* @throws CommandException
|
||||||
*/
|
*/
|
||||||
abstract public function execute(CommandSender $sender, string $commandLabel, array $args);
|
abstract public function execute(CommandSender $sender, string $commandLabel, array $args);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user