menu
#10624809 Call to undefined method pocketmine\player\Player::getAddress()

Submitted by PocketMine-MP 5.13.0

General information

Version: 5.13.0
Git commit: f193a990
Plugin involvement: Direct
Report date: 2024-04-03 05:23:13 +0000 UTC
Server uptime: 0 days 0 hours 0 minutes 25 seconds

System Information

PHP version: 8.2.13
JIT status: Not available
Operating system: linux
System banner: Linux 3e5494e89be5 5.4.0-172-generic #190-Ubuntu SMP Fri Feb 2 23:24:22 UTC 2024 x86_64

Error information

Warning: the AntiAltAccounts plugin was directly involved in this crash. Please contact the plugin author.
Thread: Main
Message: Call to undefined method pocketmine\player\Player::getAddress()
File: plugins/Heal-main/src/Terpz710/AntiAltAccounts/Loader
Line: #30
Type: Error
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
        $this->getServer()->getPluginManager()->registerEvents($this, $this);
}

public function onDisable(): void{
$this->getLogger()->info("AntiAltAccounts has been disabled!");
}

public function onPlayerJoin(PlayerJoinEvent $event): void {
$player = $event->getPlayer();
$ip = $player->getAddress();

$this->saveIP($ip);

if ($this->isAltIP($ip)) {
$player->kick(TF::RED . "Your account has been §cbanned§f for being an alt!");
$this->getServer()->getIPBans()->addBan($ip, "Alt Account Detected", null, $player->getName());
}
}

private function saveIP(string $ip): void {
#0 pmsrc/src/event/RegisteredListener(61): Terpz710\AntiAltAccounts\Loader->onPlayerJoin(object pocketmine\event\player\PlayerJoinEvent#162850)
#1 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\player\PlayerJoinEvent#162850)
#2 pmsrc/src/player/Player(895): pocketmine\event\Event->call()
#3 pmsrc/src/network/mcpe/NetworkSession(864): pocketmine\player\Player->doFirstSpawn()
#4 pmsrc/src/network/mcpe/handler/SpawnResponsePacketHandler(37): pocketmine\network\mcpe\NetworkSession->onClientSpawnResponse()
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/SetLocalPlayerAsInitializedPacket(42): pocketmine\network\mcpe\handler\SpawnResponsePacketHandler->handleSetLocalPlayerAsInitialized(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#162940)
#6 pmsrc/src/network/mcpe/NetworkSession(456): pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket->handle(object pocketmine\network\mcpe\handler\SpawnResponsePacketHandler#87341)
#7 pmsrc/src/network/mcpe/NetworkSession(394): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\SetLocalPlayerAsInitializedPacket#162940, string[2] q.)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(214): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[47] .c*d.........:1048._.......$...........MX......)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(40): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[56] .r.Zx?......q..!..e.5..4.*..Z.8c.B...n....?.....!....&..)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(107): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#196769)
#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(1696): pocketmine\snooze\SleeperHandler->sleepUntil(float 1712121793.6646)
#16 pmsrc/src/Server(1066): pocketmine\Server->tickProcessor()
#17 pmsrc/src/PocketMine(350): pocketmine\Server->__construct(object pocketmine\thread\ThreadSafeClassLoader#3, object pocketmine\utils\MainLogger#6, string[20] /server/server-data/, string[28] /server/server-data/plugins/)
#18 pmsrc/src/PocketMine(373): pocketmine\server()
#19 pmsrc(11): require(string[55] phar:///server/jars/pmmp-5.13.0.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed Composer Dependencies

Installed PHP Extensions

  • Show