Beispiel #1
0
 public void UnregisterServerAdmin(string adminName)
 {
     if (ServerAdmins.Contains(adminName))
     {
         ServerAdmins.Remove(adminName);
     }
 }
Beispiel #2
0
 public void RegisterServerAdmin(string adminName)
 {
     if (!ServerAdmins.Contains(adminName))
     {
         ServerAdmins.Add(adminName);
     }
 }
Beispiel #3
0
 public bool IsAdmin(string playerName)
 {
     return(ServerAdmins.Contains(playerName));
 }
Beispiel #4
0
 protected override void OnDisabled()
 {
     base.OnDisabled();
     ServerAdmins.Clear();
 }