1
0

AdminFrozenSystem.cs 408 B

12345678910111213141516
  1. using Content.Shared.Administration;
  2. namespace Content.Server.Administration.Systems;
  3. public sealed class AdminFrozenSystem : SharedAdminFrozenSystem
  4. {
  5. /// <summary>
  6. /// Freezes and mutes the given entity.
  7. /// </summary>
  8. public void FreezeAndMute(EntityUid uid)
  9. {
  10. var comp = EnsureComp<AdminFrozenComponent>(uid);
  11. comp.Muted = true;
  12. Dirty(uid, comp);
  13. }
  14. }