예제 #1
0
        public void OnBanRemoved(CBanInfo cbiUnban) {

        }
예제 #2
0
파일: AdKats.cs 프로젝트: BP4U/AdKats
 public override void OnBanAdded(CBanInfo ban)
 {
     if (!this.isEnabled || !this.useBanEnforcer) return;
     //this.DebugWrite("OnBanAdded fired", 6);
     //this.ExecuteCommand("procon.protected.send", "banList.list");
 }
예제 #3
0
        public void OnPunkbusterBanInfo(CBanInfo cbiPunkbusterBan) {

        }
예제 #4
0
        public void OnBanAdded(CBanInfo cbiBan) {

        }
예제 #5
0
 public void Game_BanListAdd(FrostbiteClient sender, CBanInfo ban) {
     this.InvokeIfRequired(() => this.BansSource.Append(ban));
 }
예제 #6
0
        private ListViewItem CreateBanEntry(CBanInfo cbiPlayerBan) {

            ListViewItem lviNewBanEntry = null;

            if (String.Compare("name", cbiPlayerBan.IdType, true) == 0 || String.Compare("persona", cbiPlayerBan.IdType, true) == 0) {
                lviNewBanEntry = this.CreateBlankBanEntry(String.Format("{0}\r\n\r\n", cbiPlayerBan.SoldierName));
                lviNewBanEntry.Text = cbiPlayerBan.Offset.HasValue == true ? (cbiPlayerBan.Offset.Value + 1).ToString(CultureInfo.InvariantCulture) : "-";

                lviNewBanEntry.SubItems["name"].Text = cbiPlayerBan.SoldierName;

                lviNewBanEntry.SubItems["type"].Tag = cbiPlayerBan.IdType;
                lviNewBanEntry.SubItems["type"].Text = this.GetFriendlyTypeName(cbiPlayerBan.IdType);

                //lviNewBanEntry.SubItems["banlength"].Tag = cbiPlayerBan.BanLength;
                lviNewBanEntry.SubItems["timeremaining"].Tag = cbiPlayerBan.BanLength;

                lviNewBanEntry.SubItems["reason"].Text = cbiPlayerBan.Reason;
            }
            else if (String.Compare("ip", cbiPlayerBan.IdType, true) == 0) {

                lviNewBanEntry = this.CreateBlankBanEntry(String.Format("\r\n{0}\r\n", cbiPlayerBan.IpAddress));
                lviNewBanEntry.Text = cbiPlayerBan.Offset.HasValue == true ? (cbiPlayerBan.Offset.Value + 1).ToString(CultureInfo.InvariantCulture) : "-";

                lviNewBanEntry.SubItems["name"].Text = cbiPlayerBan.SoldierName;
                lviNewBanEntry.SubItems["ip"].Text = cbiPlayerBan.IpAddress;

                lviNewBanEntry.SubItems["type"].Tag = cbiPlayerBan.IdType;
                lviNewBanEntry.SubItems["type"].Text = this.GetFriendlyTypeName(cbiPlayerBan.IdType);

                //lviNewBanEntry.SubItems["banlength"].Tag = cbiPlayerBan.BanLength;
                lviNewBanEntry.SubItems["timeremaining"].Tag = cbiPlayerBan.BanLength;

                lviNewBanEntry.SubItems["reason"].Text = cbiPlayerBan.Reason;

            }
            else if (String.Compare("guid", cbiPlayerBan.IdType, true) == 0) {

                lviNewBanEntry = this.CreateBlankBanEntry(String.Format("\r\n\r\n{0}", cbiPlayerBan.Guid));
                lviNewBanEntry.Text = cbiPlayerBan.Offset.HasValue == true ? (cbiPlayerBan.Offset.Value + 1).ToString(CultureInfo.InvariantCulture) : "-";

                lviNewBanEntry.SubItems["name"].Text = cbiPlayerBan.SoldierName;
                lviNewBanEntry.SubItems["guid"].Text = cbiPlayerBan.Guid;
                lviNewBanEntry.SubItems["ip"].Text = cbiPlayerBan.IpAddress;

                lviNewBanEntry.SubItems["type"].Tag = cbiPlayerBan.IdType;
                lviNewBanEntry.SubItems["type"].Text = this.GetFriendlyTypeName(cbiPlayerBan.IdType);

                //lviNewBanEntry.SubItems["banlength"].Tag = cbiPlayerBan.BanLength;
                lviNewBanEntry.SubItems["timeremaining"].Tag = cbiPlayerBan.BanLength;

                lviNewBanEntry.SubItems["reason"].Text = cbiPlayerBan.Reason;
            }

            else if (String.Compare("pbguid", cbiPlayerBan.IdType, true) == 0) {

                lviNewBanEntry = this.CreateBlankBanEntry(String.Format("\r\n\r\n{0}", cbiPlayerBan.Guid));
                lviNewBanEntry.SubItems["name"].Text = cbiPlayerBan.SoldierName;
                lviNewBanEntry.SubItems["guid"].Text = cbiPlayerBan.Guid;
                lviNewBanEntry.SubItems["ip"].Text = cbiPlayerBan.IpAddress;

                lviNewBanEntry.SubItems["type"].Tag = cbiPlayerBan.IdType;
                lviNewBanEntry.SubItems["type"].Text = this.GetFriendlyTypeName(cbiPlayerBan.IdType);

                //lviNewBanEntry.SubItems["banlength"].Tag = cbiPlayerBan.BanLength;
                lviNewBanEntry.SubItems["timeremaining"].Tag = cbiPlayerBan.BanLength;

                lviNewBanEntry.SubItems["reason"].Text = cbiPlayerBan.Reason.TrimEnd('"'); ;
            }

            return lviNewBanEntry;
        }
예제 #7
0
 public void OnPbGuidBan(PRoConClient sender, CBanInfo ban) {
     this.InvokeIfRequired(() => this.BansSource.Append(ban));
 }
예제 #8
0
 public void OnPbGuidUnban(CBanInfo unbanned) {
     this.InvokeIfRequired(() => {
         this.BansSource.Remove(unbanned);
     
         this.OnSettingResponse("local.banlist.unban", true);
     });
 }
예제 #9
0
        public void OnUnban(FrostbiteClient sender, CBanInfo unbanned) {
            this.InvokeIfRequired(() => { 
                this.BansSource.Remove(unbanned);

                this.OnSettingResponse("local.banlist.unban", true);
            });
        }
예제 #10
0
        private void m_prcClient_PunkbusterPlayerUnbanned(PRoConClient sender, CBanInfo unbanned) {
            this.InvokeIfRequired(() => {
                this.BansSource.Remove(unbanned);

                this.OnSettingResponse("local.banlist.unban", true);
            });
        }
예제 #11
0
파일: AdKats.cs 프로젝트: LmaA-aD/AdKats
 public override void OnBanAdded(CBanInfo ban) {
     if (!_pluginEnabled || !_UseBanEnforcer)
         return;
     //DebugWrite("OnBanAdded fired", 6);
     ExecuteCommand("procon.protected.send", "banList.list");
 }