Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WarpUI error #29

Open
ghost opened this issue Dec 28, 2021 · 1 comment
Open

WarpUI error #29

ghost opened this issue Dec 28, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 28, 2021

[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
Copy link
Owner

inxomnyaa commented Dec 28, 2021

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant