Disable re-adminning infinitely (#11174)

This commit is contained in:
Visne 2022-09-10 15:07:35 +02:00 • committed by GitHub
parent d63101efbb
commit e1782ec22b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -87,6 +87,11 @@ namespace Content.Server.Administration.Managers
throw new ArgumentException($"Player {session} is not an admin");
}
if (reg.Data.Active)
{
return;
}
_chat.DispatchServerMessage(session, Loc.GetString("admin-manager-became-admin-message"));
var plyData = session.ContentData()!;