supercrafter333 / theSpawn

A PocketMine-MP plugin as an much better alternative to MSpawns.
https://supercrafter333.github.io/theSpawn/
Apache License 2.0
25 stars 12 forks source link

[Suggestion:] Save the position in which you look when using commands #33

Closed MrBlasyMSK closed 2 years ago

MrBlasyMSK commented 2 years ago

In the old MSpawns plugin when you used /sethub or /setlobby, apart from saving the block location, it saved the position in which the body appeared, i.e. if I used the command looking at a statue, the players when joining them appeared looking at the statue.

It is very useful for servers that only have one path to follow, but if you appear with your back to the spawn it looks a bit weird.

I would also like this to apply to other commands such as /warp or /home.

Here is the line of code that I believe is responsible for that in the MSpawns plugin:

$this->plugin->setHub($sender->getLevel(), $sender->getX(), $sender->getY(), $sender->getZ(), $sender->getYaw(), $sender->getPitch());

I'm not sure if it's that line, here is the direct link to the code https://github.com/EvolSoft/MSpawns/blob/master/src/MSpawns/Commands/SetHub.php

supercrafter333 commented 2 years ago

I'll implement that soon.

supercrafter333 commented 2 years ago

❗ - The changes to implement this will break the API backward compatiblity.

supercrafter333 commented 2 years ago

Will be implemented in theSpawn v1.7.0 (v1.7.0-dev2)

supercrafter333 commented 2 years ago

Done in 0cb15e9

supercrafter333 commented 2 years ago

I would be very happy if you join my discord server:

Join the community

Discord Banner