added adminmessages when admin connect / disconnect

This commit is contained in:
2019-09-04 19:31:13 +02:00
parent b1af9439e0
commit 0cc93e681c
3 changed files with 47 additions and 0 deletions

View File

@@ -9,5 +9,40 @@ namespace ReallifeGamemode.Server.Util
public static class GlobalHelper
{
public static List<Client> dutyAdmins = new List<Client>();
public static string AdminLevelToString(AdminLevel lvl)
{
string ret = "";
if (lvl == AdminLevel.TEAM)
{
ret = "Teammitglied";
}
else if (lvl == AdminLevel.SUPPORTER)
{
ret = "Supporter";
}
else if (lvl == AdminLevel.ADMIN)
{
ret = "Admin Level 1";
}
else if (lvl == AdminLevel.ADMIN2)
{
ret = "Admin Level 2";
}
else if (lvl == AdminLevel.ADMIN3)
{
ret = "Admin Level 3";
}
else if (lvl == AdminLevel.HEADADMIN)
{
ret = "Admin Level 1337";
}
else if (lvl == AdminLevel.PROJEKTLEITUNG)
{
ret = "Admin Level 1338";
}
return ret;
}
}
}