menu
#10302245 Undefined variable $player

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 17:44:46 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 14 seconds

System Information

PHP version: 8.1.24
JIT status: Not available
Operating system: win
System banner: Windows NT BAPTISTELBH 10.0 build 22631 (Windows 11) AMD64

Error information

Warning: the Kitmap plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined variable $player
File: plugins/Kitmap/src/Kitmap/Commands/NickCommand
Line: #64
Type: ErrorException
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74

$sender->setDisplayName($name);
$sender->setNametag($name);

$sender->sendMessage("§aVotre pseudo a bien été changée temporairement pour le pseudo §2" . $name);

$this->nickCooldown[$sender->getXuid()] = time();
}else{

$name = $player->getName();

$sender->setDisplayName($name);
$sender->setNametag($name);

$sender->sendMessage("§aVotre pseudo a bien été remis a celui d'origine");
}
}

}

#0 plugins/Kitmap/src/Kitmap/Commands/NickCommand(64): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[26] Undefined variable $player, string[104] C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\Kitmap\src\Kitmap\, int 64)
#1 pmsrc/src/command/SimpleCommandMap(212): Kitmap\Commands\NickCommand->execute(object pocketmine\player\Player#160312, string[4] nick, array[0])
#2 pmsrc/src/Server(1434): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#160312, string[5] nick )
#3 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#160312, string[5] nick )
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(821): pocketmine\player\Player->chat(string[6] /nick )
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#140360)
#6 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#74748)
#7 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#140360, string[28] M./nick ..M .L2s(us..I.L...J)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[71] ...e...L.V`X..p...X..X..s..z../.... .w......'UUN..+..`.(......fOX......)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[80] ....]uk[-33.....6..`...N./U...e.e.S...6>.G..XL....)s=..+vQ.R...*....@. ...Z;.5eY)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#161346)
#11 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707759886.6692)
#16 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[54] C:\Users\Baptiste\Documents\Programmation\FinalServer\, string[62] C:\Users\Baptiste\Documents\Programmation\FinalServer\plugins\)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 pmsrc(11): require(string[98] phar://C:/Users/Baptiste/Documents/Programmation/FinalServer/PocketMine-MP.phar/)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show