menu
#9719057 Call to undefined method pocketmine\item\SplashPotion::ItemTypeIds()

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 06:37:54 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 16 seconds

System Information

PHP version: 8.1.26
JIT status: Not available
Operating system: linux
System banner: Linux 02e4f5f5-9cce-4011-a07f-f52e767e8b23 5.10.0-26-amd64 #1 SMP Debian 5.10.197-1 (2023-09-29) x86_64

Error information

Warning: the SkyWars plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method pocketmine\item\SplashPotion::ItemTypeIds()
File: plugins/SkyWars - PM5/src/svile/skywars/SWarena
Line: #338
Type: Error
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
                    for ($i = 0; $i < $tile->getInventory()->getSize(); $i++) {
$tile->getInventory()->setItem($i, VanillaBlocks::AIR()->asItem());
}

// Llena los cofres con los contenidos
foreach ($contents as $category => $items) {
foreach ($items as $set) {
foreach ($set as $key => $item) {
// Actualiza el tipo de datos del ítem
$refil1id = GlobalItemDataHandlers::getUpgrader()->upgradeItemTypeDataInt($item->ItemTypeIds(), 0, 1, null);

// Crea el ítem actualizado
$refil1 = GlobalItemDataHandlers::getDeserializer()->deserializeStack($refil1id);

// Establece el ítem en el inventario
$tile->getInventory()->setItem($key, $refil1);
}
}
}
}
#0 plugins/SkyWars - PM5/src/svile/skywars/SWarena(874): svile\skywars\SWarena->refillChests()
#1 plugins/SkyWars - PM5/src/svile/skywars/SWarena(364): svile\skywars\SWarena->start()
#2 plugins/SkyWars - PM5/src/svile/skywars/SWtimer(65): svile\skywars\SWarena->tick()
#3 pmsrc/src/scheduler/TaskHandler(113): svile\skywars\SWtimer->onRun()
#4 pmsrc/src/scheduler/TaskScheduler(137): pocketmine\scheduler\TaskHandler->run()
#5 pmsrc/src/plugin/PluginManager(533): pocketmine\scheduler\TaskScheduler->mainThreadHeartbeat(int 1501)
#6 pmsrc/src/Server(1791): pocketmine\plugin\PluginManager->tickSchedulers(int 1501)
#7 pmsrc/src/Server(1680): pocketmine\Server->tick()
#8 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#9 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#10 pmsrc/src/PocketMine(364): pocketmine\server()
#11 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show