Yo, Hello pmmp user i am wondering if u happen to know what the code for effects is. so basically my brother Leo is making a sets plugin and hes making it with ease (well its obvious hes a god at coding) but anyway we fought so he does not want to talk to me so i cant ask him so i came here. Anyway so how do you make it so that when someone puts on a diamond helmet it gives them Regen and speed??
on the call to EntityArmorChangeEvent you can add something like this: PHP: $player->addEffect(Effect::getEffect(Effect::HASTE));$player->addEffect(Effect::getEffect(Effect::SPEED));
PHP: <?phpnamespace HCF;use pocketmine\plugin\PluginBase;use pocketmine\plugin;use pocketmine\eventt;use pocketmine\event\Listener;use pocketmine\Player;use pocketmine\command\Command;use pocketmine\command\CommandSender;use pocketmine\command\CommandExecutor;use pocketmine\utils\TextFormat;use pocketmine\event\player\PlayerInteractEvent;use pocketmine\entity\Effect;use pocketmine\math\Vector3;use pocketmine\block\Block;use pocketmine\level\Level;use pocketmine\event\player\PlayerMoveEvent;use pocketmine\event\entity\EntityArmorChangeEvent;
I'm sorry to point out something that I bet 99% reading this want to say: please, nobody cares what happens between you and your brother, and you spent more than half of your post talking about it, before mentioning the main point of your post. If you really feel it necessary to mention, at least can you please kindly put it in a spoiler so that we won't be forced to read whatever happens in your very own family?
He does these reasons so he does not get exposed on Twitter for being a 'fake dev'. there's nothing wrong with asking for help imo
he said that u told him i stole code from your core yet it was plainly on github https://github.com/BamYT/Core-Plugin