menu
#10626178 Undefined variable $playername

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 06:10:59 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 5 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 92c7ea95-a1fa-4c56-9e32-dbe0e15c163d 5.15.0-1049-oracle #55-Ubuntu SMP Mon Nov 20 19:53:49 UTC 2023 aarch64

Error information

Warning: the PlotoniumCore plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Undefined variable $playername
File: plugins/PlotoniumCore/src/plotoniumdevs/plotoniumcore/apis/ScoreboardAPI
Line: #29
Type: ErrorException
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
    public static function sendScoreboard(Player $player): void
{
$online = count($player->getServer()->getOnlinePlayers());
$money = MoneyAPI::getInstance()->getMoney($player);
$rank = PurePerms::getInstance()->getUserDataMgr()->getGroup($player, null);
$faction = Faction::getInstance()->getFactionPlayer($player);

self::lineTitle($player, "§d- §fPlotonium §d-");
self::lineCreate($player, 1, "\n\n\n§0");
self::lineCreate($player, 2, "§l§d» $playername");
self::lineCreate($player, 3, "");
self::lineCreate($player, 4, " §dFaction : §7$faction");
self::lineCreate($player, 5, " §dGrade : §7$rank");
self::lineCreate($player, 6, " §dMoney : §7$money");
self::lineCreate($player, 7, " §dConnecté(s) : §7$online");
self::lineCreate($player, 8, "");
self::lineCreate($player, 9, " §7platinium.mcbe.fr ");
}

/**
#0 plugins/PlotoniumCore/src/plotoniumdevs/plotoniumcore/apis/ScoreboardAPI(29): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[30] Undefined variable $playername, string[92] /home/container/plugins/PlotoniumCore/src/plotoniumdevs/plotoniumcore/apis/Score, int 29)
#1 plugins/PlotoniumCore/src/plotoniumdevs/plotoniumcore/listeners/playerlisteners/PlayerJoin(42): plotoniumdevs\plotoniumcore\apis\ScoreboardAPI::sendScoreboard(object plotoniumdevs\plotoniumcore\PlotoniumPlayer#126731)
#2 pmsrc/src/event/RegisteredListener(61): plotoniumdevs\plotoniumcore\listeners\playerlisteners\PlayerJoin->onJoin(object pocketmine\event\player\PlayerJoinEvent#173840)
#3 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent#173840)
#4 pmsrc/src/player/Player(895): pocketmine\event\Event->call()
#5 pmsrc/src/network/mcpe/NetworkSession(864): pocketmine\player\Player->doFirstSpawn()
#6 pmsrc/src/network/mcpe/handler/SpawnResponsePacketHandler(37): pocketmine\network\mcpe\NetworkSession->onClientSpawnResponse()
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/SetLocalPlayerAsInitializedPacket(42): pocketmine\network\mcpe\handler\SpawnResponsePacketHandler->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#173786)
#8 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\handler\SpawnResponsePacketHandler#72980)
#9 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#173786, string[2] q.)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[67] .c*d.Wda6..b.Iz..^.........w`.#}x....E.;..mz.....>J.f`db..q.&,.....)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[76] .>e........d..V}.8`...}....5_.i+$.!.H...^-.S.OR..=......D.{J.L..9j|......W,.)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#128120)
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\TimeTrackingSleeperHandler->pocketmine\{closure}()
#15 pmsrc/src/TimeTrackingSleeperHandler(77): pocketmine\snooze\SleeperHandler->processNotifications()
#16 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#17 pmsrc/src/Server(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712124659.4546)
#18 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#19 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#6, object pocketmine\utils\MainLogger#3, string[16] /home/container/, string[24] /home/container/plugins/)
#20 pmsrc/src/PocketMine(373): pocketmine\server()
#21 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