SPIGOT-5829: RGB hex colours not supported in several places

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2020-06-26 09:40:21 +10:00
parent 36434feb10
commit 5191bece93
3 changed files with 6 additions and 13 deletions

View File

@@ -153,14 +153,6 @@ public final class CraftChatMessage {
}
}
public static IChatBaseComponent wrapOrNull(String message) {
return (message == null || message.isEmpty()) ? null : new ChatComponentText(message);
}
public static IChatBaseComponent wrapOrEmpty(String message) {
return (message == null) ? new ChatComponentText("") : new ChatComponentText(message);
}
public static IChatBaseComponent fromStringOrNull(String message) {
return fromStringOrNull(message, false);
}