Log global messages to console as well

master
Etzelia 2018-12-10 20:52:43 +01:00
parent ac552c17e6
commit 1797edcf13
1 changed files with 2 additions and 0 deletions

View File

@ -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) {