Log global messages to console as well
parent
ac552c17e6
commit
1797edcf13
|
@ -87,6 +87,7 @@ public class MCMUtil {
|
||||||
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
||||||
player.sendMessage(message);
|
player.sendMessage(message);
|
||||||
}
|
}
|
||||||
|
Bukkit.getConsoleSender().sendMessage(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void globalMessage(TextComponent message) {
|
public static void globalMessage(TextComponent message) {
|
||||||
|
@ -94,6 +95,7 @@ public class MCMUtil {
|
||||||
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
for (Player player : Bukkit.getServer().getOnlinePlayers()) {
|
||||||
player.spigot().sendMessage(message);
|
player.spigot().sendMessage(message);
|
||||||
}
|
}
|
||||||
|
Bukkit.getConsoleSender().sendMessage(message.toPlainText());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String getUUID(String playerName) {
|
public static String getUUID(String playerName) {
|
||||||
|
|
Loading…
Reference in New Issue