menu
#2468014 Undefined offset: 1

Submitted by PocketMine-MP 3.8.4

General information

Version: 3.8.4
Git commit: a42f68d3
Plugin involvement: Direct
Report date: 2019-06-12 05:29:01 +0000 UTC

System Information

PHP version: 7.2.16
Operating system: linux
System banner: Linux 5f0089a00847 4.4.0-148-generic #174-Ubuntu SMP Tue May 7 12:20:14 UTC 2019 x86_64

Error information

Warning: the TreasureChest plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined offset: 1
File: plugins/TreasureChest.phar/src/awzaw/treasurechest/RefillTask
Line: #39
Error level: ErrorException
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
            $inv = $tile->getInventory();

foreach ($this->plugin->treasure->getAll() as $treasure => $tarray) {

if ($treasure === $chestmode) {
$i = 0;
foreach ($tarray as $tstring) {
$t = explode(":", $tstring);

$amount = $t[1];
if ($this->plugin->prefs->get("RandomizeAmount"))
$amount = mt_rand(1, $amount);

if (mt_rand(0, 100) < $t[2]) {
$inv->setItem($i, ItemFactory::get($t[0], 0, $amount));
$i++;
}
}
break;
}
#0 plugins/TreasureChest.phar/src/awzaw/treasurechest/RefillTask(39): pocketmine\utils\Utils::errorExceptionHandler(integer 8, string[19] Undefined offset: 1, string[88] phar:///aternos/server/plugins/TreasureChest.phar/src/awzaw/treasurechest/Refill, integer 39, array[12])
#1 src/pocketmine/scheduler/TaskHandler(159): awzaw\treasurechest\RefillTask->onRun(integer 12001)
#2 src/pocketmine/scheduler/TaskScheduler(199): pocketmine\scheduler\TaskHandler->run(integer 12001)
#3 src/pocketmine/plugin/PluginManager(689): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(integer 12001)
#4 src/pocketmine/Server(2559): pocketmine\plugin\PluginManager->tickSchedulers(integer 12001)
#5 src/pocketmine/Server(2335): 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(object BaseClassLoader, object pocketmine\utils\MainLogger, string[16] /aternos/server/, string[24] /aternos/server/plugins/)
#9 (1): require(string[64] phar:///aternos/server/server.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show