1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Help Error In Teleport

Discussion in 'Development' started by HeyDeniis_, Jun 22, 2019.

  1. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    137
    PHP:
    22.06 09:12:59 [ServerServer thread/CRITICAL TypeError"Argument 2 passed to pocketmine\math\AxisAlignedBB::setBounds() must be of the type float, string given, called in phar:///jar/MCPE1.10.phar/src/pocketmine/entity/Entity.php on line 742" (EXCEPTIONin "vendor/pocketmine/math/src/AxisAlignedBB" at line 47
    22.06 
    09:12:59 [ServerServer thread/DEBUG #0 src/pocketmine/entity/Entity(742): pocketmine\math\AxisAlignedBB->setBounds(double -0.3, string 103, double -0.3, double 0.3, double 104.8, double 0.3)
    22.06 09:12:59 [ServerServer thread/DEBUG #1 src/pocketmine/entity/Entity(1858): pocketmine\entity\Entity->recalculateBoundingBox()
    22.06 09:12:59 [ServerServer thread/DEBUG #2 src/pocketmine/entity/Entity(1874): pocketmine\entity\Entity->setPosition(pocketmine\level\Position object)
    22.06 09:12:59 [ServerServer thread/DEBUG #3 src/pocketmine/entity/Entity(1969): pocketmine\entity\Entity->setPositionAndRotation(pocketmine\level\Position object, double 0, double 0)
    22.06 09:12:59 [ServerServer thread/DEBUG #4 src/pocketmine/Player(3764): pocketmine\entity\Entity->teleport(pocketmine\level\Position object, double 0, double 0)
    22.06 09:12:59 [ServerServer thread/DEBUG #5 plugins/SkyBlockPro.phar/src/sb/Main(155): pocketmine\Player->teleport(pocketmine\level\Position object, double 0, double 0)
    22.06 09:12:59 [ServerServer thread/DEBUG #6 src/pocketmine/command/PluginCommand(58): sb\Main->onCommand(pocketmine\Player object, pocketmine\command\PluginCommand object, string sb, array Array())
    22.06 09:12:59 [ServerServer thread/DEBUG #7 src/pocketmine/command/SimpleCommandMap(270): pocketmine\command\PluginCommand->execute(pocketmine\Player object, string sb, array Array())
    22.06 09:12:59 [ServerServer thread/DEBUG #8 src/pocketmine/Server(2020): pocketmine\command\SimpleCommandMap->dispatch(pocketmine\Player object, string sb ilha)
    22.06 09:12:59 [ServerServer thread/DEBUG #9 src/pocketmine/Player(2231): pocketmine\Server->dispatchCommand(pocketmine\Player object, string sb ilha)
    22.06 09:12:59 [ServerServer thread/DEBUG #10 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(239): pocketmine\Player->chat(string /sb ilha)
    22.06 09:12:59 [ServerServer thread/DEBUG #11 src/pocketmine/network/mcpe/protocol/CommandRequestPacket(54): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleCommandRequest(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
    22.06 09:12:59 [ServerServer thread/DEBUG #12 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\CommandRequestPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    22.06 09:12:59 [ServerServer thread/DEBUG #13 src/pocketmine/network/mcpe/protocol/BatchPacket(123): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\CommandRequestPacket object)
    22.06 09:12:59 [ServerServer thread/DEBUG #14 src/pocketmine/network/mcpe/PlayerNetworkSessionAdapter(109): pocketmine\network\mcpe\protocol\BatchPacket->handle(pocketmine\network\mcpe\PlayerNetworkSessionAdapter object)
    22.06 09:12:59 [ServerServer thread/DEBUG #15 src/pocketmine/Player(3124): pocketmine\network\mcpe\PlayerNetworkSessionAdapter->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    22.06 09:12:59 [ServerServer thread/DEBUG #16 src/pocketmine/network/mcpe/RakLibInterface(169): pocketmine\Player->handleDataPacket(pocketmine\network\mcpe\protocol\BatchPacket object)
    22.06 09:12:59 [ServerServer thread/DEBUG #17 vendor/pocketmine/raklib/src/server/ServerHandler(99): pocketmine\network\mcpe\RakLibInterface->handleEncapsulated(string 164.163.250.10 44815, raklib\protocol\EncapsulatedPacket object, integer 0)
    22.06 09:12:59 [ServerServer thread/DEBUG #18 src/pocketmine/network/mcpe/RakLibInterface(109): raklib\server\ServerHandler->handlePacket()
    22.06 09:12:59 [ServerServer thread/DEBUG #19 src/pocketmine/network/mcpe/RakLibInterface(99): pocketmine\network\mcpe\RakLibInterface->process()
    22.06 09:12:59 [ServerServer thread/DEBUG #20 vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\RakLibInterface->pocketmine\network\mcpe\{closure}()
    22.06 09:12:59 [ServerServer thread/DEBUG #21 vendor/pocketmine/snooze/src/SleeperHandler(85): pocketmine\snooze\SleeperHandler->processNotifications()
    22.06 09:12:59 [ServerServer thread/DEBUG #22 src/pocketmine/Server(2339): pocketmine\snooze\SleeperHandler->sleepUntil(double 1561209179.9329)
    22.06 09:12:59 [ServerServer thread/DEBUG #23 src/pocketmine/Server(2196): pocketmine\Server->tickProcessor()
    22.06 09:12:59 [ServerServer thread/DEBUG #24 src/pocketmine/Server(1775): pocketmine\Server->start()
    22.06 09:12:59 [ServerServer thread/DEBUG #25 src/pocketmine/PocketMine(266): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string /, string /plugins/)
    22.06 09:12:59 [ServerServer thread/DEBUG #26 (1): require(string phar:///jar/MCPE1.10.phar/src/pocketmine/PocketMine.php)
    22.06 09:12:59 [ServerServer thread/INFO denisgt123 left the game
    22.06 
    09:12:59 [ServerServer thread/CRITICAL TypeError"Argument 2 passed to pocketmine\nbt\tag\DoubleTag::__construct() must be of the type float, string given, called in phar:///jar/MCPE1.10.phar/src/pocketmine/entity/Entity.php on line 939" (EXCEPTIONin 

    my code is
    :
    //$s[0] and $s[2] is 0
    //$s[1] is 103
    //$this->getIlha($p) returns name of world
    $new = new Position($s[0], $s[1], $s[2], $this->getServer()->getLevelByName($this->getIlha($p)));
            
    $this->getServer()->getLevelByName($this->getIlha($p))->loadChunk($new->getFloorX(), $new->getFloorZ(), true);
            
    $p->teleport($new00);
     
  2. Swourire

    Swourire Spider Jockey

    Messages:
    49
    GitHub:
    swourire
    You're probably putting in an array a string, try putting an intval($s[0]) etc
    Send the code when you put the values of $s[0/1/2]
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.