コード例 #1
0
        private static void SettingPlayerClan(params string[] args)
        {
            ExtConsole.Write($"Player tag :");
            var tag = ExtConsole.ReadLine();

            if (!tag.StartsWith("#"))
            {
                tag = "#" + tag;
            }
            var playerlocal = client.GetPlayer(tag);

            if (playerlocal != null)
            {
                ExtConsole.WriteLine($"Player : {playerlocal.Name}");
                client.SetPlayertag(playerlocal.Tag);
                ConfigRepo.SetPlayertag(playerlocal.Tag);
                ExtConsole.WriteLine($"Clan : {playerlocal.Clan.Name}");
                client.SetClanTag(playerlocal.Clan.Tag);
                ConfigRepo.SetClanTag(playerlocal.Clan.Tag);
            }
            else
            {
                ExtConsole.Write($"Not exist");
            }
        }
コード例 #2
0
        private static void SettingClan(params string[] args)
        {
            ExtConsole.Write($"Clan tag :");
            var tag = ExtConsole.ReadLine();

            if (!tag.StartsWith("#"))
            {
                tag = "#" + tag;
            }
            var clanlocal = client.GetClan(tag);

            if (clanlocal != null)
            {
                ExtConsole.WriteLine($"Clan : {clanlocal.Name}");
                client.SetClanTag(tag);
                ConfigRepo.SetClanTag(tag);
            }
            else
            {
                ExtConsole.Write($"Not exist");
            }
        }