// check if a specific player has chat command permissions public static bool CheckPermission(MPBanEntry entry) { if (entry == null) { return(false); } if (MPBanPlayers.MatchCreator != null && entry.matches(MPBanPlayers.MatchCreator, "MATCH CREATOR: ")) { // the match creator is always authenticated return(true); } if (String.IsNullOrEmpty(entry.id)) { return(false); } // Trusted Players always have permission if (IsTrustedPlayer(entry)) { return(true); } return(IsAuthenticatedPlayer(entry)); }