inxomnyaa / WarpUI

A warp UI and world UI teleportation plugin that supports rotation and pitch.
https://poggit.pmmp.io/ci/thebigsmileXD/WarpUI/~
GNU General Public License v3.0
14 stars 8 forks source link

WarpUI error #29

Open ghost opened 2 years ago

ghost commented 2 years ago
[22:32:50.535] [Server thread/CRITICAL]: TypeError: "pocketmine\entity\Location::__construct(): Argument #4 ($world) must be of type ?pocketmine\world\World, float given, called in phar:///home/minecraft/plugins/WarpUI_dev-30.phar/src/xenialdan/WarpUI/Loader.php on line 81" (EXCEPTION) in "pmsrc/src/entity/Location" at line 37

--- Stack trace ---

#0 plugins/WarpUI_dev-30.phar/src/xenialdan/WarpUI/Loader(81): pocketmine\entity\Location->__construct(double 543.8235, double 164, double -614.049, double 1.5829467773438, double 73.360641479492, object pocketmine\world\World#106132)`

    public static function getWarp(string $name): ?Location
    {
        $values = self::getInstance()->warps->get($name);
        if ($values === false) {
            return null;
        }
        try {
            self::getInstance()->getServer()->getWorldManager()->loadWorld($values['levelname'], true);
        } catch (WorldException $e) {
            self::getInstance()->getLogger()->logException($e);
        }
        return new Location($values['x'], $values['y'], $values['z'], $values['yaw'], $values['pitch'], self::getInstance()->getServer()->getWorldManager()->getWorldByName($values['levelname']));
    }
inxomnyaa commented 2 years ago

Thank you for creating this issue.

I am currently very limited on my time and low on funds. In case you want an update / fix to be released urgently, feel free to make a donation on any of the following services:

Leave your name in the description of the donation and include which plugin / library you want updates for, and i will finish it within a week. Additionally you can claim the Donator rank on my Discord if you include your @name: discord.gg/Vh7Usbs Thank you for your generous support and have a nice day!