File tree Expand file tree Collapse file tree
EXILED/Exiled.API/Features Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,13 +117,12 @@ public static bool IsDecontaminationEnabled
117117 public static void StaffMessage ( string message , Player player = null )
118118 {
119119 player ??= Server . Host ;
120-
121120 foreach ( Player target in Player . List )
122121 {
123122 if ( ! CommandProcessor . CheckPermissions ( target . Sender , PlayerPermissions . AdminChat ) )
124123 continue ;
125124
126- player . ReferenceHub . encryptedChannelManager . TrySendMessageToClient ( player . NetId + "!" + message , EncryptedChannelManager . EncryptedChannel . AdminChat ) ;
125+ target . ReferenceHub . encryptedChannelManager . TrySendMessageToClient ( player . NetId + "!" + message , EncryptedChannelManager . EncryptedChannel . AdminChat ) ;
127126 }
128127 }
129128
@@ -420,4 +419,4 @@ internal static void ClearCache()
420419#pragma warning restore CS0618
421420 }
422421 }
423- }
422+ }
You can’t perform that action at this time.
0 commit comments