Hello! I'm trying to fix/debug Linuzo's SkyBlock Plugin on GitHub https://github.com/linuzo/SkyBlock/, I got everything to work but I'm having trouble with /is home, I already have an Island created. Here are some of the details on the issue. PHP: $sender->getName() == "CaptainDuck001" $level = $this->getServer()->getLevelByName(file_get_contents($this->getDataFolder()."Players/".$sender->getName().".txt")); if($level !== null){ $sender->sendMessage(TextFormat::GREEN."Teleporting to your island..."); if($sender->getLevel()->getName() !== $level->getName()){ $sender->sendMessage("You are not in the same world as your island."); return true; }else{ $sender->teleport(new Position(file_get_contents($this->getDataFolder()."Islands/".$sender->getName().".txt"))); $sender->sendMessage(TextFormat::GREEN."Done!"); return true; } Code: Console Error 2017-11-05 [21:20:52] [Server thread/CRITICAL]: Could not tick level "game": A non well formed numeric value encountered 2017-11-05 [21:20:52] [Server thread/CRITICAL]: ErrorException: "A non well formed numeric value encountered" (EXCEPTION) in "src/pocketmine/level/Level" at line 926 2017-11-05 [21:20:52] [Server thread/DEBUG]: #0 src/pocketmine/level/Level(926): pocketmine\error_handler(integer 8, string A non well formed numeric value encountered, string phar://C:/Users/michael ian dimayuga/Desktop/Things/PocketMine-MP-master/PocketMine-MP.phar/src/pocketmine/level/Level.php, integer 926, array Array()) 2017-11-05 [21:20:52] [Server thread/DEBUG]: #1 src/pocketmine/level/Level(745): pocketmine\level\Level->tickChunks() 2017-11-05 [21:20:52] [Server thread/DEBUG]: #2 src/pocketmine/Server(2369): pocketmine\level\Level->doTick(integer 805) 2017-11-05 [21:20:52] [Server thread/DEBUG]: #3 src/pocketmine/Server(2522): pocketmine\Server->checkTickUpdates(integer 805, double 1509888052.3559) 2017-11-05 [21:20:52] [Server thread/DEBUG]: #4 src/pocketmine/Server(2266): pocketmine\Server->tick() 2017-11-05 [21:20:52] [Server thread/DEBUG]: #5 src/pocketmine/Server(2141): pocketmine\Server->tickProcessor() 2017-11-05 [21:20:52] [Server thread/DEBUG]: #6 src/pocketmine/Server(1731): pocketmine\Server->start() 2017-11-05 [21:20:52] [Server thread/DEBUG]: #7 src/pocketmine/PocketMine(564): pocketmine\Server->__construct(BaseClassLoader object, pocketmine\utils\MainLogger object, string phar://C:/Users/michael ian dimayuga/Desktop/Things/PocketMine-MP-master/PocketMine-MP.phar/, string C:\Users\michael ian dimayuga\Desktop\Things\PocketMine-MP-master\, string C:\Users\michael ian dimayuga\Desktop\Things\PocketMine-MP-master\plugins\) 2017-11-05 [21:20:52] [Server thread/DEBUG]: #8 C:/Users/michael ian dimayuga/Desktop/Things/PocketMine-MP-master/PocketMine-MP.phar(1): require(string phar://C:/Users/michael ian dimayuga/Desktop/Things/PocketMine-MP-master/PocketMine-MP.phar/src/pocketmine/PocketMine.php) 2017-11-05 [21:20:52] [Server thread/CRITICAL]: Could not tick level "game": A non well formed numeric value encountered 2017-11-05 [21:20:52] [Server thread/CRITICAL]: ErrorException: "A non well formed numeric value encountered" (EXCEPTION) in "src/pocketmine/level/Level" at line 926 The content of Players/CaptainDuck001.txt is 'game' and for Islands/CaptainDuck001.txt is '367, 100, 206'
The error lies where you create a new Position instance. Check the Position parameters https://github.com/pmmp/PocketMine-MP/blob/master/src/pocketmine/level/Position.php