Parties plugin for PocketMine-MP
use Parties\Parties;
$instance = Parties::getInstance();
use Parties\event\party\PartyCreateEvent;
public function onCreate(PartyCreateEvent $event) {
$party = $event->getParty();
}
You can see the full event list here
$session = $instance-getSessionManager()->getSession(Player);
$player = $session->getOwner();
if($session->hasParty()) {
$party = $session->getParty();
}
foreach($party->getMembers() as $member) {
$member->function();
}
You can see the full API in the Session and the Party classes.