menu
#7862190 Undefined array key 4

Submitted by PocketMine-MP 4.10.1

General information

Version: 4.10.1
Git commit: a39938e6
Plugin involvement: Direct
Report date: 2022-11-24 12:34:52 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 35 seconds

System Information

PHP version: 8.0.24
JIT status: Disabled
Operating system: linux
System banner: Linux 11510ab3-72af-41fc-a2cd-62e0d21c4987 5.15.0-1022-azure #27~20.04.1-Ubuntu SMP Mon Oct 17 02:03:50 UTC 2022 x86_64

Error information

Warning: the EcoAPIScore plugin was directly involved in this crash. Please contact the plugin author.
Message: Undefined array key 4
File: plugins/EcoApiScorePremi.phar/src/Ifera/EcoAPIScore/listeners/TagResolveListener
Line: #49
Error level: ErrorException
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
	public function moneyFormat($num) {
if($num >= 1000) {
$x = round($num);
$x_number_format = number_format($x);
$x_array = explode(',', $x_number_format);
$x_parts = array('K', 'M', 'B', 'T');
$x_count_parts = count($x_array) - 1;
$x_display = $x;
$x_display = $x_array[0] . ((int) $x_array[1][0] !== 0 ? '.' . $x_array[1][0] : '');
$x_display .= $x_parts[$x_count_parts - 1];
return $x_display;
}
return $num;
}
}
#0 plugins/EcoApiScorePremi.phar/src/Ifera/EcoAPIScore/listeners/TagResolveListener(49): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[21] Undefined array key 4, string[107] phar:///home/container/plugins/EcoApiScorePremi.phar/src/Ifera/EcoAPIScore/liste, int 49)
#1 plugins/EcoApiScorePremi.phar/src/Ifera/EcoAPIScore/listeners/TagResolveListener(33): Ifera\EcoAPIScore\listeners\TagResolveListener->moneyFormat(int 1029001707789672)
#2 pmsrc/src/event/RegisteredListener(60): Ifera\EcoAPIScore\listeners\TagResolveListener->onTagResolve(object Ifera\ScoreHud\event\TagsResolveEvent#143119)
#3 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object Ifera\ScoreHud\event\TagsResolveEvent#143119)
#4 plugins/ScoreHud.phar/src/Ifera/ScoreHud/scoreboard/ScoreboardHelper(48): pocketmine\event\Event->call()
#5 plugins/ScoreHud.phar/src/Ifera/ScoreHud/scoreboard/ScoreboardHelper(57): Ifera\ScoreHud\scoreboard\ScoreboardHelper::constructTag(object Ifera\ScoreHud\session\PlayerSession#142763, string[17] ecoapiscore.money)
#6 plugins/ScoreHud.phar/src/Ifera/ScoreHud/session/PlayerSession(128): Ifera\ScoreHud\scoreboard\ScoreboardHelper::createDefault(object Ifera\ScoreHud\session\PlayerSession#142763)
#7 plugins/ScoreHud.phar/src/Ifera/ScoreHud/session/PlayerSession(113): Ifera\ScoreHud\session\PlayerSession->constructDefaultBoard(false)
#8 plugins/ScoreHud.phar/src/Ifera/ScoreHud/session/PlayerManager(45): Ifera\ScoreHud\session\PlayerSession->handle()
#9 plugins/ScoreHud.phar/src/Ifera/ScoreHud/session/PlayerSessionHandler(47): Ifera\ScoreHud\session\PlayerManager::create(object pocketmine\player\Player#139799)
#10 pmsrc/src/event/RegisteredListener(60): Ifera\ScoreHud\session\PlayerSessionHandler->onPlayerJoin(object pocketmine\event\player\PlayerJoinEvent#142721)
#11 pmsrc/src/event/Event(62): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent#142721)
#12 pmsrc/src/player/Player(861): pocketmine\event\Event->call()
#13 pmsrc/src/network/mcpe/NetworkSession(733): pocketmine\player\Player->doFirstSpawn()
#14 pmsrc/src/network/mcpe/NetworkSession(726): pocketmine\network\mcpe\NetworkSession->onClientSpawnResponse()
#15 pmsrc/src/network/mcpe/handler/SpawnResponsePacketHandler(36): pocketmine\network\mcpe\NetworkSession->pocketmine\network\mcpe\{closure}()
#16 pmsrc/vendor/pocketmine/bedrock-protocol/src/SetLocalPlayerAsInitializedPacket(42): pocketmine\network\mcpe\handler\SpawnResponsePacketHandler->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#143248)
#17 pmsrc/src/network/mcpe/NetworkSession(410): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\handler\SpawnResponsePacketHandler#142665)
#18 pmsrc/src/network/mcpe/NetworkSession(373): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#143248, string[2] q')
#19 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[59] c*T.Wdaz.l.[..n..w...M`d.........P..ohh.`bb....&,..........)
#20 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1, string[68] .h.....n6s...|e.N.Ejs...u..H.Nr....xGn.$...,c.3.A;.......g..........)
#21 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#98666)
#22 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#23 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#24 pmsrc/src/Server(1707): pocketmine\snooze\SleeperHandler->sleepUntil(float 1669293292.1614)
#25 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#26 pmsrc/src/PocketMine(305): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#27 pmsrc/src/PocketMine(328): pocketmine\server()
#28 pmsrc(11): require(string[60] phar:///home/container/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show