1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-10 15:20:48 -05:00

fixed issues with the previous commit :(

This commit is contained in:
RaidMax
2015-03-10 23:47:34 -05:00
parent 3aef7619fc
commit c7f8b0591b
8 changed files with 66 additions and 14 deletions

View File

@ -79,5 +79,24 @@ namespace IW4MAdmin
{
return Regex.Replace(str, @"\^[0-9]", "");
}
public static String levelToColor(Player.Permission level)
{
switch (level)
{
case Player.Permission.Banned:
return "^1" + Player.Permission.Banned;
break;
case Player.Permission.Owner:
return "^5" + Player.Permission.Owner;
break;
case Player.Permission.User:
return "^3" + Player.Permission.User;
break;
default:
return "^2" + level;
break;
}
}
}
}