3
0
Mirror von https://github.com/GeyserMC/Geyser.git synchronisiert 2024-12-26 08:10:11 +01:00

Fix console chat output

Dieser Commit ist enthalten in:
DoctorMacc 2020-10-07 19:44:13 -04:00
Ursprung 977ce4bbec
Commit 105f4f0a32

Datei anzeigen

@ -30,6 +30,7 @@ import net.minecraft.server.command.ServerCommandSource;
import net.minecraft.text.LiteralText; import net.minecraft.text.LiteralText;
import org.geysermc.connector.GeyserConnector; import org.geysermc.connector.GeyserConnector;
import org.geysermc.connector.command.CommandSender; import org.geysermc.connector.command.CommandSender;
import org.geysermc.connector.common.ChatColor;
public class FabricCommandSender implements CommandSender { public class FabricCommandSender implements CommandSender {
@ -49,7 +50,7 @@ public class FabricCommandSender implements CommandSender {
try { try {
source.getPlayer().sendMessage(new LiteralText(message), false); source.getPlayer().sendMessage(new LiteralText(message), false);
} catch (CommandSyntaxException e) { // why } catch (CommandSyntaxException e) { // why
GeyserConnector.getInstance().getLogger().info(message); GeyserConnector.getInstance().getLogger().info(ChatColor.toANSI(message + ChatColor.RESET));
} }
} }