menu
#9718703 Call to a member function getName() on string

Submitted by PocketMine-MP 5.8.2

General information

Version: 5.8.2
Git commit: c3c81b09
Plugin involvement: Direct
Report date: 2023-12-03 05:10:55 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 38 seconds

System Information

PHP version: 8.1.25
JIT status: Not available
Operating system: linux
System banner: Linux aefbc3cc-b420-491e-8d95-4304cc6b183b 5.15.0-88-generic #98-Ubuntu SMP Mon Oct 2 15:18:56 UTC 2023 x86_64

Error information

Warning: the Clan plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to a member function getName() on string
File: plugins/Clan.phar/src/Nexus9w9/Clan/model/Clan
Line: #35
Type: Error
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
        Player|string $leader,
?array $data = null
) {
$this->name = $name;
$this->tag = $tag;
$this->leader = $leader instanceof Player ? $leader->getName() : $leader;

if (is_null($data)) {
$this->members = [
strtolower($leader->getName()) => $leader->getName()
];
} else {
$this->members = $data['members'];
}
}

/**
* Cria um objeto Clan a partir de um array de dados.
*/
public static function createByData(array $data): self {
#0 plugins/Clan.phar/src/Nexus9w9/Clan/commands/subcommand/CreateSubCommand(54): Nexus9w9\Clan\model\Clan->__construct(string[5] TESTE, string[3] TST, string[10] SamPEVEPAS)
#1 plugins/Clan.phar/src/Nexus9w9/Clan/commands/default/ClanCommand(70): Nexus9w9\Clan\commands\subcommand\CreateSubCommand->execute(object pocketmine\player\Player#190885, object Nexus9w9\Clan\model\PlayerProfile#151138, array[2])
#2 pmsrc/src/command/SimpleCommandMap(212): Nexus9w9\Clan\commands\default\ClanCommand->execute(object pocketmine\player\Player#190885, string[4] clan, array[2])
#3 pmsrc/src/Server(1418): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#190885, string[21] clan create TST TESTE)
#4 pmsrc/src/player/Player(1512): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#190885, string[21] clan create TST TESTE)
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(826): pocketmine\player\Player->chat(string[22] /clan create TST TESTE)
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(55): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#153844)
#7 pmsrc/src/network/mcpe/NetworkSession(445): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#161619)
#8 pmsrc/src/network/mcpe/NetworkSession(383): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#153844, string[44] M./clan create TST TESTE..D...@%..H+.......H)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(219): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[48] ....O.I.SH.JM,IU...Q.q..qe.....e....<.7.:}.%....)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[57] .}.%].Sx0.7.%2A...tz..#.s..n.~.2.{.T..0G.........l..$..+.)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(111): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#179267)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(120): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/src/TimeTrackingSleeperHandler(58): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(79): pocketmine\TimeTrackingSleeperHandler->processNotifications()
#15 pmsrc/src/Server(1683): pocketmine\snooze\SleeperHandler->sleepUntil(float 1701580255.913)
#16 pmsrc/src/Server(1065): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(341): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[16] /home/container/, string[24] /home/container/plugins/)
#18 pmsrc/src/PocketMine(364): pocketmine\server()
#19 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