By continuing to use this site, you agree to the Terms of Service of this website, including usage of cookies.
OK, Don't show this again
stopon your server, then start it again.
Everyone who joins with an "Alex" skin, or switches to one of those, will become "pregnant"..
Mojang saves every possible property in any entity, even player. So it happens that player save data contains the
IsPregnant data flag. I decided to make some kind of a meme out of that.
Actually, the mechanic behind that system is quite interesting. If you'd like, check out https://github.com/thebigsmileXD/Backpack where i actually made practical use out of the "wearable geometry" concept created in this plugin.
When a player is set as pregnant, the addPlayer function sends a message to the player. The sent message contains one random word from this video: https://www.youtube.com/watch?v=EShUeudtaFg (Thanks to @Sandertv for the idea and that guy who made an alphabetically ordered list in the video's comment section!)
You can set the data flag to turn a player pregnant (or not pregnant anymore) like this:
/** @var Player $player */ $player->setGenericFlag(Entity::DATA_FLAG_PREGNANT); if (Loader::isPregnant($event->getPlayer())) Loader::addPlayer($event->getPlayer());
Do not forget to import Loader.
When you set the data flag to false, the entity will automatically be removed
Reply to review by :
You can leave one review per plugin release, and delete or update your review at any time
This Release will be permanently deleted and cannot be recovered. Are you sure?