KcdMp.on_party_change
A hook called with the party after every change.
Set it to a function to hear every PartyState (membership, leader, name, labels, the frames switch) and every vitals
update (at most twice a second). The argument is KcdMp.party; an empty party (id 0) means the player left or the
party ended. An error inside is logged ([KcdMp] on_party_change: ...).
Syntax
Section titled “Syntax”KcdMp.on_party_changeReturns
Section titled “Returns”function | nil - function(party) end, or nil for no hook
Example
Section titled “Example”KcdMp.on_party_change = function(party) if party.id ~= 0 then print("party " .. party.id .. ": " .. #party.members .. " member(s)") endendSee also
Section titled “See also”KcdMp.party · the The party group of the index
