public static string concatList(bool includeColor = true, bool skipExtra = false, bool permissions = false)
{
string returnString = "";
foreach (Group grp in Group.GroupList)
{
if (!skipExtra || (grp.Permission > LevelPermission.Guest && grp.Permission < LevelPermission.Nobody))
if (includeColor) {
returnString += ", " + grp.color + grp.name + Server.DefaultColor;
} else if (permissions) {
returnString += ", " + ((int)grp.Permission).ToString();
} else
returnString += ", " + grp.name;
}
if (includeColor) returnString = returnString.Remove(returnString.Length - 2);
return returnString.Remove(0, 2);
}