SPIGOT-4177: Change behaviour of item display names yet again
By: md_5 <git@md-5.net>
This commit is contained in:
@@ -138,6 +138,10 @@ public final class CraftChatMessage {
|
||||
}
|
||||
}
|
||||
|
||||
public static IChatBaseComponent wrapOrNull(String message) {
|
||||
return (message == null || message.isEmpty()) ? null : new ChatComponentText(message);
|
||||
}
|
||||
|
||||
public static IChatBaseComponent fromStringOrNull(String message) {
|
||||
return (message == null || message.isEmpty()) ? null : fromString(message)[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user