public bool CheckBans(PlayerInstance ch, int type) { switch (type) { case (int)BanTypes.Race: return(CheckRaceBans(ch)); case (int)BanTypes.Class: return(CheckClassBans(ch)); case (int)BanTypes.Site: return(CheckSiteBans(ch)); default: _logManager.Bug("Invalid ban type {0}", type); return(false); } }