PartyManager

public final class PartyManager implements Listener

Owns all session-only party state. Nothing in this manager is serialized; quitting immediately removes a member.

Constructors

Link copied to clipboard
public void PartyManager()

Properties

Link copied to clipboard
public final static Map<UUID, Party> parties

Functions

Link copied to clipboard
public static void accept(Player player)

public static PartyOperationResult accept(Player player, boolean notify)
Accepts the current invite; roster changes still invalidate native ready checks.
Link copied to clipboard
public static void create(Player creator)

public static PartyOperationResult create(Player creator, boolean notify)
Main-thread integration entry point.
Link copied to clipboard
public static List<Player> expandSharedCreditParticipants(Collection<Player> contributors, EliteEntity eliteEntity)
Expands actual combat contributors to nearby party members while preserving one credit per UUID.
public static List<Player> expandSharedCreditParticipants(Collection<Player> contributors, Location creditLocation)
Link copied to clipboard
public static List<UUID> getDungeonEntryMemberIds(Player initiator)
Freezes the party roster used for a dungeon-entry attempt.
Link copied to clipboard
public static List<Player> getInvitablePlayers(Player owner)
Returns the currently online players this owner can meaningfully invite.
Link copied to clipboard
public static List<Player> getNearbyMembers(Party party, Location location)
public static List<Player> getNearbyMembers(Player partyMember, Location location)
Link copied to clipboard
public static Map<UUID, Party> getParties()
Link copied to clipboard
public static Party getParty(UUID playerId)
Link copied to clipboard
public static void initialize()
Link copied to clipboard
public static void invite(Player inviter, String targetName)

public static PartyOperationResult invite(Player inviter, String targetName, boolean notify)
Uses the ordinary invitation rules, including automatic creation of the inviter's party.
Link copied to clipboard
public static boolean isDungeonEntryRosterCurrent(Player initiator, Collection<UUID> memberIds)
Ensures nobody left or switched parties while an instanced world was being prepared.
Link copied to clipboard
public static boolean isInParty(UUID playerId)
Link copied to clipboard
public static void leave(Player player)

public static PartyOperationResult leave(Player player, boolean notify)
Leaving remains possible if parties are disabled or the player's permission was revoked.
Link copied to clipboard
Post-admission only: cancelled or rejected entry attempts never change party membership.
Link copied to clipboard
Link copied to clipboard
public void onPlayerQuit(PlayerQuitEvent event)
Link copied to clipboard
public static void sendConfiguredMessage(Player player, String message)
Link copied to clipboard
public static boolean shouldUsePartyLoot(Player player, EliteEntity eliteEntity)
Link copied to clipboard
public static void shutdown()