エラー

KIRIMARU

New member
3月 3, 2018
2
0
1
日本
Prismarine Crash Dump Thu Mar 1 22:39:32 UTC 2018

Error: Declaration of leonchang99\SignPortal\Main::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, $label, array $args) must be compatible with pocketmine\plugin\PluginBase::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool
File: plugins/SignPortal_v1.1.2.phar/src/leonchang99/SignPortal/Main
Line: 22
Type: E_COMPILE_ERROR

THIS CRASH WAS CAUSED BY A PLUGIN

Code:
[13] use pocketmine\event\block\SignChangeEvent;
[14] /** Not currently used but may be later used */
[15] use pocketmine\level\Position;
[16] use pocketmine\entity\Entity;
[17] use pocketmine\event\block\BlockPlaceEvent;
[18] use pocketmine\event\block\BlockBreakEvent;
[19] use pocketmine\item\Item;
[20] use pocketmine\tile\Tile;
[21]
[22] class Main extends PluginBase implements Listener{
[23] private $api, $server, $path;
[24]
[25] public function onEnable(){
[26] $this->getServer()->getPluginManager()->registerEvents($this, $this);
[27] }
[28]
[29] public function playerBlockTouch(PlayerInteractEvent $event){
[30] if($event->getBlock()->getID() == 323 || $event->getBlock()->getID() == 63 || $event->getBlock()->getID() == 68){
[31] $sign = $event->getPlayer()->getLevel()->getTile($event->getBlock());
[32] if(!($sign instanceof Sign)){

Backtrace:

Prismarine version: 1.2.8 #0 [Protocol 160; API 3.0.0]
Git commit: 0000000000000000000000000000000000000000
uname -a: Darwin Macintosh.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
PHP Version: 7.2.2
Zend version: 3.2.0
OS : Darwin, mac

Loaded plugins:
EconomyPShop 2.0.2-6 by onebone for API(s) 3.0.0-ALPHA7, 3.0.0-ALPHA8, 3.0.0-ALPHA9, 3.0.0-ALPHA10, 3.0.0-ALPHA11

----------------------REPORT THE DATA BELOW THIS LINE-----------------------

===BEGIN CRASH DUMP===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
170
95
28
Japan/Tokyo
Error: Declaration of leonchang99\SignPortal\Main::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, $label, array $args) must be compatible with pocketmine\plugin\PluginBase::eek:nCommand(pocketmine\command\CommandSender $sender, pocketmine\command\Command $command, string $label, array $args): bool
つまり、SignPortalプラグインのMainクラス内、onCommand関数が
Code:
public function onCommand(CommandSender $sender, Command $command, $label, array $args) {
  // code...
}
となっているのを、
Code:
public function onCommand(CommandSender $sender, Command $command, string $label, array $args): bool {
  // code...
}
としなければならない、ということです