geforkt von Mirrors/HeadDB
Don't send empty messages
Dieser Commit ist enthalten in:
Ursprung
c0f1cb28c0
Commit
d873e4bebe
@ -37,8 +37,10 @@ public class Utils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void sendMessage(CommandSender sender, String message) {
|
public static void sendMessage(CommandSender sender, String message) {
|
||||||
|
if (!message.isEmpty()) {
|
||||||
sender.sendMessage(colorize(message));
|
sender.sendMessage(colorize(message));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public static String colorize(String string) {
|
public static String colorize(String string) {
|
||||||
return ChatColor.translateAlternateColorCodes('&', string);
|
return ChatColor.translateAlternateColorCodes('&', string);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren