Fixed SendData to use 255 instead of 8.
This commit is contained in:
parent
8707ad0c39
commit
83c5ece94c
1 changed files with 2 additions and 2 deletions
|
|
@ -78,7 +78,7 @@ namespace TShockAPI
|
||||||
/// <param name="color">Float containing red, blue, and green color values</param>
|
/// <param name="color">Float containing red, blue, and green color values</param>
|
||||||
public static void SendMessage(int ply, string msg, float[] color)
|
public static void SendMessage(int ply, string msg, float[] color)
|
||||||
{
|
{
|
||||||
NetMessage.SendData(0x19, ply, -1, msg, 8, color[0], color[1], color[2]);
|
NetMessage.SendData(0x19, ply, -1, msg, 255, color[0], color[1], color[2]);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sends a green message to a player
|
/// Sends a green message to a player
|
||||||
|
|
@ -87,7 +87,7 @@ namespace TShockAPI
|
||||||
/// <param name="message">string message</param>
|
/// <param name="message">string message</param>
|
||||||
public static void SendMessage(int ply, string message)
|
public static void SendMessage(int ply, string message)
|
||||||
{
|
{
|
||||||
NetMessage.SendData(0x19, ply, -1, message, 8, 0f, 255f, 0f);
|
NetMessage.SendData(0x19, ply, -1, message, 255, 0f, 255f, 0f);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The number of active players on the server.
|
/// The number of active players on the server.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue