menu
#10302374 Call to a member function getName() on null

Submitted by PocketMine-MP 5.11.0

General information

Version: 5.11.0
Git commit: ce8fecc6
Plugin involvement: Direct
Report date: 2024-02-12 18:11:46 +0000 UTC
Server uptime: 1 days 4 hours 4 minutes 7 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux c1c27e5c-a3e2-4a26-9599-d2e279b4b4c8 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64

Error information

Warning: the PiggyFactions plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to a member function getName() on null
File: plugins/PiggyFactions/src/DaPigGuy/PiggyFactions/utils/Island
Line: #68
Type: Error
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
        {
return true;
}
return false;
}

public static function existFactionPoints(Player $player): bool
{
$factionPointsFile = new Config(PiggyFactions::getInstance()->getDataFolder() . "factionPoints.json", Config::JSON);
if ($factionPointsFile->exists(PlayerManager::getInstance()->getPlayerFaction($player->getUniqueId())->getName()))
{
return true;
}
return false;
}

public static function setFactionPoints(Player $player): void
{
$factionPointsFile = new Config(PiggyFactions::getInstance()->getDataFolder() . "factionPoints.json", Config::JSON);
$factionPointsFile->set(PlayerManager::getInstance()->getPlayerFaction($player->getUniqueId())->getName(), 0);
#0 plugins/PiggyFactions/src/DaPigGuy/PiggyFactions/EventListener(188): DaPigGuy\PiggyFactions\utils\Island::existFactionPoints(object pocketmine\player\Player#1184110)
#1 pmsrc/src/event/RegisteredListener(61): DaPigGuy\PiggyFactions\EventListener->onBreak(object pocketmine\event\block\BlockBreakEvent#580392)
#2 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\block\BlockBreakEvent#580392)
#3 pmsrc/src/world/World(2089): pocketmine\event\Event->call()
#4 pmsrc/src/player/Player(1791): pocketmine\world\World->useBreakOn(object pocketmine\math\Vector3#628109, object pocketmine\item\ItemBlock#327658, object pocketmine\player\Player#1184110, true, array[0])
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(496): pocketmine\player\Player->breakBlock(object pocketmine\math\Vector3#883831)
#6 pmsrc/src/network/mcpe/handler/InGamePacketHandler(279): pocketmine\network\mcpe\handler\InGamePacketHandler->handleUseItemTransaction(object pocketmine\network\mcpe\protocol\types\inventory\UseItemTransactionData#540915)
#7 pmsrc/vendor/pocketmine/bedrock-protocol/src/PlayerAuthInputPacket(296): pocketmine\network\mcpe\handler\InGamePacketHandler->handlePlayerAuthInput(object pocketmine\network\mcpe\protocol\PlayerAuthInputPacket#1063002)
#8 pmsrc/src/network/mcpe/NetworkSession(462): pocketmine\network\mcpe\protocol\PlayerAuthInputPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#1308494)
#9 pmsrc/src/network/mcpe/NetworkSession(400): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\PlayerAuthInputPacket#1063002, string[116] ..hG@B.....F4A4.l....A.........................Zo6......................F4A4.l..)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[94] .c.a......,......4...!)7.G..9.Vu.ud...x...`ddbX?..cT..H.}c.6..&.C.....c.`..j....)
#11 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 2541, string[103] ....*'...=.BmXW+..... ..l....!p.{...^]..........[....,l.......s..i.%hD8.. `cp^..)
#12 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#162260)
#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(1699): pocketmine\snooze\SleeperHandler->sleepUntil(float 1707761505.6725)
#18 pmsrc/src/Server(1067): pocketmine\Server->tickProcessor()
#19 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/)
#20 pmsrc/src/PocketMine(364): 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