menu
#9648746 Undefined array key "ChamoyMK"

Submitted by PocketMine-MP 5.8.1

General information

Version: 5.8.1
Git commit: 75a39491
Plugin involvement: Direct
Report date: 2023-11-21 00:43:47 +0000 UTC
Server uptime: 1 days 5 hours 6 minutes 54 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: linux
System banner: Linux 2dac6cee-eaa1-4fbc-ba17-86c2f51a0611 6.2.0-33-generic #33~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 10:33:52 UTC 2 x86_64

Error information

Warning: the StaffModeHL plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined array key "ChamoyMK"
File: plugins/SM/src/Larcic/staffmode/commands/SpectatorCommand
Line: #41
Type: ErrorException
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
                StaffMode::instance()->staff[] = $sender->getName();
$sender->sendMessage("§7- Tu modo cambio a §eEspectador");
StaffMode::instance()->contents[$sender->getName()] = $sender->getInventory()->getContents();
$sender->getInventory()->clearAll();
$sender->getInventory()->addItem($item);
$sender->setGamemode(GameMode::SPECTATOR());
} else {
unset(StaffMode::instance()->staff[array_search($sender->getName(),StaffMode::instance()->staff)]);
$sender->getInventory()->clearAll();
$sender->getInventory()->setContents(StaffMode::instance()->contents[$sender->getName()]);
unset(StaffMode::instance()->contents[array_search($sender->getName(),StaffMode::instance()->contents)]);
$sender->sendMessage("§7- Tu modo cambio a §eSurvival");
$sender->getInventory()->removeItem($item);
$sender->setGamemode(GameMode::SURVIVAL());
}
}
}
}
#0 plugins/SM/src/Larcic/staffmode/commands/SpectatorCommand(41): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[30] Undefined array key "ChamoyMK", string[77] /home/container/plugins/SM/src/Larcic/staffmode/commands/SpectatorCommand.php, int 41)
#1 pmsrc/src/command/SimpleCommandMap(212): Larcic\staffmode\commands\SpectatorCommand->execute(object pocketmine\player\Player#853125, string[2] sp, array[0])
#2 pmsrc/src/Server(1418): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#853125, string[2] sp)
#3 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#853125, string[2] sp)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(826): pocketmine\player\Player->chat(string[3] /sp)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#1402087)
#6 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#1364328)
#7 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#1402087, string[25] M./sp..Dt7|94U40..(.c...H)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[69] ..e./.`.w)1..4.51..Zc^r......F.y.N.....H.r..q.qO..g.(..744p0115723`..)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 1711, string[78] .8._A8....aDBe...c&~[Nv......Jgm..B..OL.6..h..9.......+....E.JQsQ.....+....-.\)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#190828)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#14 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1700527427.4799)
#15 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(334): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#17 pmsrc/src/PocketMine(357): pocketmine\server()
#18 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