3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-19 04:50:06 +01:00

Use ColouredConsoleSender to send chat to console. Thanks TheDgtl!

Dieser Commit ist enthalten in:
EvilSeph 2011-07-14 15:45:24 -04:00
Ursprung 3c5ecd0854
Commit 958acee5af

Datei anzeigen

@ -7,6 +7,7 @@ import java.util.logging.Logger;
// CraftBukkit start // CraftBukkit start
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.craftbukkit.command.ColouredConsoleSender;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.command.CommandException; import org.bukkit.command.CommandException;
import org.bukkit.craftbukkit.block.CraftBlock; 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()); 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()) { for (Player recipient : event.getRecipients()) {
recipient.sendMessage(s); recipient.sendMessage(s);
} }