From 83c5ece94c8c5fa8788e57653b5de4286ad2ff0d Mon Sep 17 00:00:00 2001 From: Shank Date: Thu, 2 Jun 2011 18:04:06 -0600 Subject: [PATCH] Fixed SendData to use 255 instead of 8. --- TShockAPI/Tools.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TShockAPI/Tools.cs b/TShockAPI/Tools.cs index 8d6423ca..3f0ef0ab 100644 --- a/TShockAPI/Tools.cs +++ b/TShockAPI/Tools.cs @@ -78,7 +78,7 @@ namespace TShockAPI /// Float containing red, blue, and green color values 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]); } /// /// Sends a green message to a player @@ -87,7 +87,7 @@ namespace TShockAPI /// 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); } /// /// The number of active players on the server.