menu
#2387398 Call to a member function sendTip() on null

Submitted by PocketMine-MP 3.8.1

General information

Version: 3.8.1
Git commit: 7521160f
Plugin involvement: Direct
Report date: 2019-05-15 17:18:11 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux Unkreativ-Hauptserver 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3.1 (2019-02-19) x86_64

Error information

Warning: the Vanish plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function sendTip() on null
File: plugins/Vanish - AD/src/Aromastoffe/VanishTask
Line: #19
Error level: Error
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    public function __construct(Vanish $pl)  {
$this->plugin = $pl;
$this->plugin->getScheduler()->scheduleRepeatingTask($this, 5);
}

public function onRun(int $currentTick) {
foreach ($this->plugin->getServer()->getOnlinePlayers() as $player) {
foreach ($this->plugin->vanish as $vp) {
$play = $this->plugin->getServer()->getPlayer($vp);
$play->sendTip("§6Vanish §8-> §l§aAktiviert");
$play->setScoreTag("§8[§d§lVanish§r§8]");
$this->plugin->getServer()->removePlayerListData($play->getUniqueId());

if (!$player->hasPermission('cb.showall')) {
$player->hidePlayer($play);
}
}
}
}
}
#0 src/pocketmine/scheduler/TaskHandler(159): Aromastoffe\VanishTask->onRun(integer 397861)
#1 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 397861)
#2 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 397861)
#3 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 397861)
#4 src/pocketmine/Server(2335): pocketmine\Server->tick()
#5 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
#6 src/pocketmine/Server(1775): pocketmine\Server->start()
#7 src/pocketmine/PocketMine(258): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /home/mcpe/WoolBattle/1/, string /home/mcpe/WoolBattle/1/plugins/)
#8 (1): require(string phar:///home/mcpe/WoolBattle/1/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show