menu
#2470678 Use of undefined constant AIR - assumed 'AIR' (this will throw an Error in a future version of PHP)

Submitted by PocketMine-MP 3.8.2

General information

Version: 3.8.2
Git commit: 5c81da9b
Plugin involvement: Direct
Report date: 2019-06-12 13:17:46 +0000 UTC

System Information

PHP version: 7.2.13
Operating system: linux
System banner: Linux 1021.DE.Cloud.Cube-Hosting.cloud 4.9.0-9-amd64 #1 SMP Debian 4.9.168-1+deb9u2 (2019-05-13) x86_64

Error information

Warning: the MysteryCrate plugin was directly involved in this crash. Please contact the plugin author.
Message: Use of undefined constant AIR - assumed 'AIR' (this will throw an Error in a future version of PHP)
File: plugins/MysteryCrate_v9.1.0/src/JackMD/MysteryCrate/UpdaterEvent
Line: #217
Error level: ErrorException
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
					$i++;
}

$this->setItem(4, Item::get(Item::END_ROD));
$this->setItem(22, Item::get(Item::END_ROD));

$chestBlock->getLevel()->addSound(new ClickSound($chestBlock), [$player]);

$reward = $this->getReward();
$this->setItem(10, $crateInventory->getItem(AIR));
$this->setItem(11, $crateInventory->getItem(AIR));
$this->setItem(12, $crateInventory->getItem(AIR));
$this->setItem(13, $crateInventory->getItem(14));//reward
$this->setItem(14, $crateInventory->getItem(AIR));
$this->setItem(15, $crateInventory->getItem(AIR));
$this->setItem(16, $reward);
}

if($t_delay == -1){
$this->setItem(10, Item::get(Item::AIR));
#0 plugins/MysteryCrate_v9.1.0/src/JackMD/MysteryCrate/UpdaterEvent(217): pocketmine\utils\Utils::errorExceptionHandler(integer 2, string Use of undefined constant AIR - assumed 'AIR' (this will throw an Error in a future version of PHP), string /root/SURO/plugins/MysteryCrate_v9.1.0/src/JackMD/MysteryCrate/UpdaterEvent.php, integer 217, array Array())
#1 src/pocketmine/scheduler/TaskHandler(159): JackMD\MysteryCrate\UpdaterEvent->onRun(integer 3014)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 3014)
#3 src/pocketmine/plugin/PluginManager(688): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 3014)
#4 src/pocketmine/Server(2558): pocketmine\plugin\PluginManager->tickSchedulers(integer 3014)
#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 /root/SURO/, string /root/SURO/plugins/)
#9 (1): require(string phar:///root/SURO/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show