summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorEvilSeph <evilseph@gmail.com>2011-07-14 15:45:24 -0400
committerEvilSeph <evilseph@gmail.com>2011-07-14 15:45:24 -0400
commit958acee5aff7dedead270b1098eafb9b12eb6846 (patch)
tree04e8bada480942ac284be7c01468669710c441cf /src/main/java/net/minecraft/server
parent3c5ecd0854ca5bbd73dfac606edd62df51e7ebf4 (diff)
downloadcraftbukkit-958acee5aff7dedead270b1098eafb9b12eb6846.tar
craftbukkit-958acee5aff7dedead270b1098eafb9b12eb6846.tar.gz
craftbukkit-958acee5aff7dedead270b1098eafb9b12eb6846.tar.lz
craftbukkit-958acee5aff7dedead270b1098eafb9b12eb6846.tar.xz
craftbukkit-958acee5aff7dedead270b1098eafb9b12eb6846.zip
Use ColouredConsoleSender to send chat to console. Thanks TheDgtl!
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/NetServerHandler.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/NetServerHandler.java b/src/main/java/net/minecraft/server/NetServerHandler.java
index 00b8de8d..0078dc45 100644
--- a/src/main/java/net/minecraft/server/NetServerHandler.java
+++ b/src/main/java/net/minecraft/server/NetServerHandler.java
@@ -7,6 +7,7 @@ import java.util.logging.Logger;
// CraftBukkit start
import org.bukkit.ChatColor;
+import org.bukkit.craftbukkit.command.ColouredConsoleSender;
import org.bukkit.Location;
import org.bukkit.command.CommandException;
import org.bukkit.craftbukkit.block.CraftBlock;
@@ -685,7 +686,8 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
}
s = String.format(event.getFormat(), event.getPlayer().getDisplayName(), event.getMessage());
- a.info(s);
+ ColouredConsoleSender c = new ColouredConsoleSender(this.minecraftServer.server);
+ c.sendMessage(s);
for (Player recipient : event.getRecipients()) {
recipient.sendMessage(s);
}