Skip to content

Commit

Permalink
SendStaffMessage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
IRacle1 committed Aug 15, 2024
1 parent 904865e commit bcb78e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions EXILED/Exiled.API/Features/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2288,7 +2288,7 @@ public void RemoteAdminMessage(string message, bool success = true, string plugi
/// <returns><see langword="true"/> if message was send; otherwise, <see langword="false"/>.</returns>
public bool SendStaffMessage(string message, EncryptedChannelManager.EncryptedChannel channel = EncryptedChannelManager.EncryptedChannel.AdminChat)
{
return ReferenceHub.encryptedChannelManager.TrySendMessageToClient("!" + NetId + message, channel);
return ReferenceHub.encryptedChannelManager.TrySendMessageToClient(NetId + "!" + message, channel);
}

/// <summary>
Expand All @@ -2299,7 +2299,7 @@ public bool SendStaffMessage(string message, EncryptedChannelManager.EncryptedCh
/// <returns><see langword="true"/> if message was send; otherwise, <see langword="false"/>.</returns>
public bool SendStaffPing(string message, EncryptedChannelManager.EncryptedChannel channel = EncryptedChannelManager.EncryptedChannel.AdminChat)
{
return ReferenceHub.encryptedChannelManager.TrySendMessageToClient("!0" + message, channel);
return ReferenceHub.encryptedChannelManager.TrySendMessageToClient("0!" + message, channel);
}

/// <summary>
Expand Down

0 comments on commit bcb78e7

Please sign in to comment.