///<summary> Checks if the given STEAMID is an admin in the database</summary>
public static bool admincheck(SteamID sender)
{
if (UserDatabase.ContainsKey(sender.ToString()))
{ //If the STEAMID is in the dictionary
string Key = sender.ToString();
EClanPermission UserPermissions = UserDatabase[Key]; //It will get the permissions value
if ((UserPermissions & EClanPermission.OwnerOfficerModerator) > 0) //Checks if it has sufficient privilages
{
return true; //If there's sufficient privilages, it'll return true
}
}
return false; //If there is no entry in the database, or there aren't sufficient privalages, it'll return false
}