forgot about removing

This commit is contained in:
Paul
2021-11-12 19:47:57 +01:00
parent 7b48fdd7f5
commit 7cd16f77bd

View File

@@ -27,10 +27,11 @@ namespace Content.Server.Administration
_adminManager.OnPermsChanged += OnAdminPermsChanged;
SubscribeLocalEvent<PlayerAttachedEvent>(OnPlayerAttached);
SubscribeLocalEvent<PlayerDetachedEvent>(OnPlayerDetached);
SubscribeLocalEvent<RoleAddedEvent>(OnRoleAddedEvent);
SubscribeLocalEvent<RoleAddedEvent>(OnRoleEvent);
SubscribeLocalEvent<RoleRemovedEvent>(OnRoleEvent);
}
private void OnRoleAddedEvent(RoleAddedEvent ev)
private void OnRoleEvent(RoleEvent ev)
{
if (ev.Role.Antagonist && ev.Role.Mind.Session != null)
{