From 1797edcf13b6ff1298b8b0bad56c9e3bd84e71ba Mon Sep 17 00:00:00 2001 From: Etzelia Date: Mon, 10 Dec 2018 20:52:43 +0100 Subject: [PATCH] Log global messages to console as well --- src/main/java/xyz/etztech/minecraftmanager/MCMUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/xyz/etztech/minecraftmanager/MCMUtil.java b/src/main/java/xyz/etztech/minecraftmanager/MCMUtil.java index 589dbda..42ed646 100644 --- a/src/main/java/xyz/etztech/minecraftmanager/MCMUtil.java +++ b/src/main/java/xyz/etztech/minecraftmanager/MCMUtil.java @@ -87,6 +87,7 @@ public class MCMUtil { for (Player player : Bukkit.getServer().getOnlinePlayers()) { player.sendMessage(message); } + Bukkit.getConsoleSender().sendMessage(message); } public static void globalMessage(TextComponent message) { @@ -94,6 +95,7 @@ public class MCMUtil { for (Player player : Bukkit.getServer().getOnlinePlayers()) { player.spigot().sendMessage(message); } + Bukkit.getConsoleSender().sendMessage(message.toPlainText()); } public static String getUUID(String playerName) {