menu
#3553456 Call to undefined method pocketmine\Player::isInsideOfPortal()

Submitted by PocketMine-MP 3.11.1

General information

Version: 3.11.1
Git commit: 40a2211a
Plugin involvement: Direct
Report date: 2020-01-14 17:19:15 +0000 UTC

System Information

PHP version: 7.3.9
Operating system: linux
System banner: Linux gs95677 4.15.0-54-generic #58-Ubuntu SMP Mon Jun 24 10:55:24 UTC 2019 x86_64

Error information

Warning: the PORTAL_Transfer plugin was directly involved in this crash. Please contact the plugin author.
Message: Call to undefined method pocketmine\Player::isInsideOfPortal()
File: plugins/PORTAL_Transfer_v2.phar/src/portal_transfer/Portal
Line: #23
Error level: Error
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

public function onEnable()
{
$this->saveDefaultConfig();
$this->getServer()->getPluginManager()->registerEvents($this, $this);
}

public function onMove(PlayerMoveEvent $event){
$player = $event->getPlayer();
if($player->isInsideOfPortal() and $player->getLevel() == $player->getServer()->getDefaultLevel()){
$addr = $this->getConfig()->get("server");
$addr = explode(":", $addr);
$this->transfer($player, $addr[0], $addr[1]);
}
}
public function transfer(Player $p, $ip, $port){
$pk = new TransferPacket();
$pk->address = $ip;
$pk->port = (int)$port;
$p->dataPacket($pk);
#0 src/pocketmine/plugin/MethodEventExecutor(38): portal_transfer\Portal->onMove(object pocketmine\event\player\PlayerMoveEvent)
#1 src/pocketmine/plugin/RegisteredListener(98): pocketmine\plugin\MethodEventExecutor->execute(object portal_transfer\Portal, object pocketmine\event\player\PlayerMoveEvent)
#2 src/pocketmine/event/Event(95): pocketmine\plugin\RegisteredListener->callEvent(object pocketmine\event\player\PlayerMoveEvent)
#3 src/pocketmine/Player(1659): pocketmine\event\Event->call()
#4 src/pocketmine/Player(1764): pocketmine\Player->processMovement(integer 1)
#5 src/pocketmine/level/Level(853): pocketmine\Player->onUpdate(integer 2904)
#6 src/pocketmine/level/Level(786): pocketmine\level\Level->actuallyDoTick(integer 2904)
#7 src/pocketmine/Server(2443): pocketmine\level\Level->doTick(integer 2904)
#8 src/pocketmine/Server(2574): pocketmine\Server->checkTickUpdates(integer 2904, double 1579022355.7503)
#9 src/pocketmine/Server(2343): pocketmine\Server->tick()
#10 src/pocketmine/Server(2203): pocketmine\Server->tickProcessor()
#11 src/pocketmine/Server(1785): pocketmine\Server->start()
#12 src/pocketmine/PocketMine(272): pocketmine\Server->__construct(object BaseClassLoader, object pocketmine\utils\MainLogger, string[6] /home/, string[14] /home/plugins/)
#13 src/pocketmine/PocketMine(295): pocketmine\server()
#14 (1): require(string[61] phar:///home/PocketMine-MP.phar/src/pocketmine/PocketMine.php)

Loaded Plugins

  • Show

Server Settings

  • Show