Beispiel #1
0
 internal static bool CheckBanExpireAndLevel(BanData ban, int characterLevel)
 {
     if (!ban.IsExpired())
     {
         return(false);
     }
     if (ban.Level == characterLevel)
     {
         if (ban.Warn)
         {
             // TODO what?
         }
         return(false);
     }
     return(true);
 }
 public void Add(BanData ban) => Bans.ToList().Add(ban);
Beispiel #3
0
 internal static bool CheckBanExpiration(BanData ban) => !ban.IsExpired();