ChannelMembershipManager
Parameters
Whether a player is exempt from being kicked or banned. Injected rather than read from Bukkit inline so this manager stays testable without a running server.
The current time in milliseconds, injected so invitation expiry can be tested.
Constructors
Functions
Gets the role of a member in a channel.
Gets the role of a member in a channel without throwing exceptions.
Gets all channels where the player is a member.
Records actorId's invitation of targetId to channelId, which the target accepts by joining within INVITATION_LIFETIME.
Adds a player to a channel as a member and sets it as their active channel. If the player is already a member of other channels, they remain members of those channels. Only one channel can be active at a time.
Removes the player from the active channel completely. The player will be removed from the channel membership and the active channel will be cleared.
Switches the player's active channel to a channel they are already a member of.