menu
#3081901 Cannot use [] for reading

Submitted by PocketMine-MP 3.9.1

General information

Version: 3.9.1
Git commit: aaa01bb6
Plugin involvement: Direct
Report date: 2019-11-08 18:34:25 +0000 UTC

System Information

PHP version: 7.3.11
Operating system: linux
System banner: Linux server17282 3.10.0-957.12.2.vz7.96.21 #1 SMP Thu Jun 27 15:10:55 MSK 2019 x86_64

Error information

Warning: a plugin was directly involved in this crash. Please contact the plugin author.
Message: Cannot use [] for reading
File: plugins/MevFFA-master/src/Mev/Main
Line: #103
Error level: E_COMPILE_ERROR
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
            if(count($this->getServer()->getLevelByName("ffa")->getPlayers()) < 40) {
$this->getScheduler()->scheduleRepeatingTask(new ScoreboardTask($this), 6 * 20);
// $this->getScheduler()->scheduleRepeatingTask(new TeleportTask($this, $player), 20);
$x = -5;
$y = 21;
$z = 73;

$arenalevel = $this->plugin->getServer()->getLevelByName("ffa");
$arenaspawn = $arenalevel->getSafeSpawn();
$this->players[]->teleport(new Position($x, $y, $z, $arenalevel));
$this->players[]->sendMessage(TF::DARK_PURPLE . "You have joined FFA-1.");
$this->players[]->setGamemode(0);
$this->players[]->setHealth(20);
$this->players[]->setFood(20);
$this->players[]->getInventory()->clearAll();
$helmet = Item::get(310);
$chestplate = Item::get(311);
$leggings = Item::get(312);
$boots = Item::get(313);
$sword = ItemFactory::get(Item::DIAMOND_SWORD);

Loaded Plugins

  • Show

Server Settings

  • Show