menu
#2470687 Too few arguments to function pocketmine\level\sound\GenericSound::__construct(), 1 passed in C:\Users\Administrator\Desktop\MCPE\plugins\#SimonSay\src\tungsten_simonsay\Task\GameTask.php on line 91 and at least 2 expected

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Indirect
Report date: 2019-06-12 13:19:23 +0000 UTC

System Information

PHP version: 7.2.2
Operating system: win
System banner: Windows NT UHUVV16TSDJ7IAR 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) AMD64

Error information

Warning: the SimonSay plugin was indirectly involved in this crash. This may be a false positive. Please contact the plugin author before opening a bug ticket.
Message: Too few arguments to function pocketmine\level\sound\GenericSound::__construct(), 1 passed in C:\Users\Administrator\Desktop\MCPE\plugins\#SimonSay\src\tungsten_simonsay\Task\GameTask.php on line 91 and at least 2 expected
File: src/pocketmine/level/sound/GenericSound
Line: #36
Error level: ArgumentCountError
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use pocketmine\network\mcpe\protocol\LevelEventPacket;

class GenericSound extends Sound{

/** @var int */
protected $id;
/** @var float */
protected $pitch = 0;

public function __construct(Vector3 $pos, int $id, float $pitch = 0){
parent::__construct($pos->x, $pos->y, $pos->z);
$this->id = $id;
$this->pitch = $pitch * 1000;
}

public function getPitch() : float{
return $this->pitch / 1000;
}

public function setPitch(float $pitch) : void{
#0 plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask(91): pocketmine\level\sound\GenericSound->__construct(pocketmine\Player object)
#1 plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask(129): tungsten_simonsay\Task\GameTask->winThisGameRound()
#2 plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask(233): tungsten_simonsay\Task\GameTask->createGame()
#3 src/pocketmine/scheduler/TaskHandler(159): tungsten_simonsay\Task\GameTask->onRun(integer 12341)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 12341)
#5 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 12341)
#6 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 12341)
#7 src/pocketmine/Server(2334): pocketmine\Server->tick()
#8 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#9 src/pocketmine/Server(1774): pocketmine\Server->start()
#10 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Administrator\Desktop\MCPE\, string C:\Users\Administrator\Desktop\MCPE\plugins\)
#11 (1): require(string phar://C:/Users/Administrator/Desktop/MCPE/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show