Fixed blank lines sent for empty messages.

This commit is contained in:
ryanhamshire 2015-01-10 23:22:19 -08:00
parent 9a81a80fd2
commit 0cb4572269

View File

@ -2408,7 +2408,9 @@ public class GriefPrevention extends JavaPlugin
//sends a color-coded message to a player //sends a color-coded message to a player
static void sendMessage(Player player, ChatColor color, String message) static void sendMessage(Player player, ChatColor color, String message)
{ {
if(player == null) if(message == null || message.length() == 0) return;
if(player == null)
{ {
GriefPrevention.AddLogEntry(color + message); GriefPrevention.AddLogEntry(color + message);
} }