menu
#2387652 Call to a member function getSpawnLocation() on null

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-05-15 20:09:37 +0000 UTC

System Information

PHP version: 7.2.17
Operating system: linux
System banner: Linux ns3080062 3.10.0-957.10.1.el7.x86_64 #1 SMP Mon Mar 18 15:06:45 UTC 2019 x86_64

Error information

Warning: the FFAPlus plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to a member function getSpawnLocation() on null
File: plugins/ffa/src/PMSmash/FFAPlus/Events/FFAEvents
Line: #32
Error level: Error
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use pocketmine\Player;

class FFAEvents implements Listener {

public $map;
public $plugin;
public $player;

public function map() {
$MAP = Server::getInstance()->getLevelByName($this->plugin->conf->get("world"))->getSpawnLocation();
return $MAP;
}


public function __construct(FFA $plugin)
{
$this->plugin = $plugin;
}

public function onDamageNPC(EntityDamageByEntityEvent $event){
#0 plugins/ffa/src/PMSmash/FFAPlus/Tasks/TeleportTask(31): PMSmash\FFAPlus\Events\FFAEvents->map()
#1 src/pocketmine/scheduler/TaskHandler(159): PMSmash\FFAPlus\Tasks\TeleportTask->onRun(integer 3076)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 3076)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 3076)
#4 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 3076)
#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 /srv/data/, string /srv/data/plugins/)
#9 (1): require(string phar:///srv/data/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show