menu
#5777728 Call to undefined method pocketmine\Server::getPlayer()

Submitted by PocketMine-MP 4.0.6

General information

Version: 4.0.6
Git commit: f7d25f25
Plugin involvement: Direct
Report date: 2022-01-15 01:06:57 +0000 UTC
Server uptime: 0 days 0 hours 1 minutes 4 seconds

System Information

PHP version: 8.0.13
Operating system: win
System banner: Windows NT JEWELCRAFT-HOST 10.0 build 17763 (Windows 10) AMD64

Error information

Warning: the TransferMe plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\Server::getPlayer()
File: plugins/TransferMe_1.phar/src/Electro/TransferMe/Main
Line: #57
Error level: Error
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
                                $sender->sendMessage("Please use this command in-game");
}
}
else if ($args[2] == "all"){
foreach ($this->getServer()->getOnlinePlayers() as $players){
$players->transfer($args[0], $args[1]);
}
}
else{
if ($this->getServer()->getPlayer($args[2])){
$player = $this->getServer()->getPlayer($args[2]);
$player->transfer($args[0], $args[1]);
}
else{
$sender->sendMessage("§c" . $args[2] . " §ais not online");
}
}
}
else{
$sender->sendMessage("§cUsage: §a/transfer {IP} {Port} <PlayerName | all>");
#0 pmsrc/src/command/PluginCommand(54): Electro\TransferMe\Main->onCommand(object pocketmine\player\Player#24984, object pocketmine\command\PluginCommand#23448, string[8] transfer, array[3])
#1 pmsrc/src/command/SimpleCommandMap(220): pocketmine\command\PluginCommand->execute(object pocketmine\player\Player#24984, string[8] transfer, array[3])
#2 pmsrc/src/Server(1406): pocketmine\command\SimpleCommandMap->dispatch(object pocketmine\player\Player#24984, string[41] transfer play.cubecraft.net 19132 SeoMC99)
#3 pmsrc/src/player/Player(1342): pocketmine\Server->dispatchCommand(object pocketmine\player\Player#24984, string[41] transfer play.cubecraft.net 19132 SeoMC99)
#4 pmsrc/src/network/mcpe/handler/InGamePacketHandler(711): pocketmine\player\Player->chat(string[42] /transfer play.cubecraft.net 19132 SeoMC99)
#5 pmsrc/vendor/pocketmine/bedrock-protocol/src/CommandRequestPacket(60): pocketmine\network\mcpe\handler\InGamePacketHandler->handleCommandRequest(object pocketmine\network\mcpe\protocol\CommandRequestPacket#97090)
#6 pmsrc/src/network/mcpe/NetworkSession(395): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#92774)
#7 pmsrc/src/network/mcpe/NetworkSession(358): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\CommandRequestPacket#97090, string[63] M*/transfer play.cubecraft.net 19132 SeoMC99..Fp!\]..r.Ww......)
#8 pmsrc/src/network/mcpe/raklib/RakLibInterface(192): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[66] ..../)J.+NK-R(.I..K.MJM.JL+..K-Q0.446R.N..u..d8.V....o].....S.....)
#9 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(integer 0, string[75] .H!.. ..>...p..4\.r.+.....l}.....8].h..U....O.].F..\...SqSad...*Gd....0..hG)
#10 pmsrc/src/network/mcpe/raklib/RakLibInterface(122): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#23438)
#11 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#13 pmsrc/src/Server(1657): pocketmine\snooze\SleeperHandler->sleepUntil(double 1642208817.9681)
#14 pmsrc/src/Server(1044): pocketmine\Server->tickProcessor()
#15 pmsrc/src/PocketMine(303): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#3, string[36] C:\Users\JewelCraft\Desktop\1-Lobby\, string[44] C:\Users\JewelCraft\Desktop\1-Lobby\plugins\)
#16 pmsrc/src/PocketMine(326): pocketmine\server()
#17 pmsrc(11): require(string[80] phar://C:/Users/JewelCraft/Desktop/1-Lobby/PocketMine-MP.phar/src/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show

Installed PHP Extensions

  • Show