menu
#2580631 Call to a member function sendPopup() on null

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-07-11 17:09:33 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: win
System banner: Windows NT DESKTOP-NPO10HF 10.0 build 17134 (Windows 10) AMD64

Error information

Warning: the Boss plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function sendPopup() on null
File: plugins/Boss/src/NawafPlugin/Boss
Line: #83
Error level: Error
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
        }
}

public function task(){
$this->heal--;
$this->attack--;
if(count($this->player) >= 1){
$this->time--;
foreach ($this->player as $p){
$this->getServer()->getPlayer($p)->sendPopup(C::BLUE."Wait : $this->time");
}
if($this->time <= 0){

foreach ($this->player as $p){
$pl = $this->getServer()->getPlayer($p);
$pl->teleport($this->map["spawnp"]);
}
$this->h = 5;
$this->heal = 5;
$this->attack = 1;
#0 plugins/Boss/src/NawafPlugin/Boss(163): NawafPlugin\Boss->task()
#1 src/pocketmine/scheduler/TaskHandler(159): NawafPlugin\boos->onRun(integer 3601)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 3601)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 3601)
#4 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 3601)
#5 src/pocketmine/Server(2334): pocketmine\Server->tick()
#6 src/pocketmine/Server(2195): pocketmine\Server->tickProcessor()
#7 src/pocketmine/Server(1774): pocketmine\Server->start()
#8 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string C:\Users\Dell\Desktop\PocketMine-MP\, string C:\Users\Dell\Desktop\PocketMine-MP\plugins\)
#9 (1): require(string phar://C:/Users/Dell/Desktop/PocketMine-MP/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show