Пример #1
0
        public static void ClientLeaderDissolveFaction()
        {
            ClientValidateHasAccessRights(FactionMemberAccessRights.Leader);

            if (LandClaimSystem.ClientEnumerateAllCurrentFactionAreas()
                .Any())
            {
                NotificationSystem.ClientShowNotification(
                    title: null,
                    CoreStrings.Faction_DialogDissolveFaction_ErrorHasLandClaimsClaims,
                    NotificationColor.Bad);
                return;
            }

            Instance.CallServer(
                _ => _.ServerRemote_LeaderDissolveFaction());
            Logger.Important("Requested faction dissolve");
        }