public static void HandlePartyInvitationDetailsRequestMessage(WorldClient client, PartyInvitationDetailsRequestMessage message)
        {
            PartyInvitation invitation = client.Character.GetInvitation(message.partyId);

            if (invitation != null)
            {
                PartyHandler.SendPartyInvitationDetailsMessage(client, invitation);
            }
        }
        public static void HandlePartyInvitationRequestMessage(WorldClient client, PartyInvitationRequestMessage message)
        {
            Character character = Singleton <World> .Instance.GetCharacter(message.name);

            if (character == null)
            {
                PartyHandler.SendPartyCannotJoinErrorMessage(client, PartyJoinErrorEnum.PARTY_JOIN_ERROR_PLAYER_NOT_FOUND);
            }
            else
            {
                if (character.IsAway)
                {
                    PartyHandler.SendPartyCannotJoinErrorMessage(client, PartyJoinErrorEnum.PARTY_JOIN_ERROR_PLAYER_BUSY);
                }
                else
                {
                    client.Character.Invite(character);
                }
            }
        }