Added method to get admin level name
This commit is contained in:
20
Server/Extensions/AdminLevelExtension.cs
Normal file
20
Server/Extensions/AdminLevelExtension.cs
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
using reallife_gamemode.Server.Util;
|
||||||
|
using static reallife_gamemode.Server.Util.AdminLevel;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Text;
|
||||||
|
|
||||||
|
namespace reallife_gamemode.Server.Extensions
|
||||||
|
{
|
||||||
|
public static class AdminLevelExtension
|
||||||
|
{
|
||||||
|
public static string ToString(this AdminLevel level)
|
||||||
|
{
|
||||||
|
switch(level)
|
||||||
|
{
|
||||||
|
case SUPPORTER:
|
||||||
|
return "Supporter";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user