menu
#2467526 Call to undefined method pocketmine\block\Dirt::setBlock()

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-06-12 04:03:25 +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 directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\block\Dirt::setBlock()
File: plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask
Line: #47
Error level: Error
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
	[ "Place a wood block",

];
public $game = [];
public $waittimepergame; //Wait to go to next game
public $block = [];

public function deleteBlock(){
for($i = 0;$i < count($this->block);$i++){
$this->block[$i]->setBlock(new Vector3($this->block[$i]->x, $this->block[$i]->y, $this->block[$i]->z),Block::get(Block::AIR));
SSManagement::$blockPlace[$this->block[$i]]->setBlock(new Vector3($this->block[$i]->x, $this->block[$i]->y, $this->block[$i]->z),Block::get(Block::AIR));
}
}
public function winThisGameRound(){
for($i = 0;$i < count($this->players);$i++){
for($b = 0;$b < count($this->winthisround);$b++){
print("b: ".$b."/count....: ".count($this->winthisround) -1);
if($this->players[$i]->getName() == $this->winthisround[$b]){
if(count($this->game) == 0){
$this->players[$i]->sendPopup("You win this round,game end in: ".$this->waittimepergame);
#0 plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask(93): tungsten_simonsay\Task\GameTask->deleteBlock()
#1 plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask(100): tungsten_simonsay\Task\GameTask->winThisGameRound()
#2 plugins/#SimonSay/src/tungsten_simonsay/Task/GameTask(215): tungsten_simonsay\Task\GameTask->createGame()
#3 src/pocketmine/scheduler/TaskHandler(159): tungsten_simonsay\Task\GameTask->onRun(integer 1781)
#4 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 1781)
#5 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 1781)
#6 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 1781)
#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