diff --git a/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java b/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java index 2ca59f75..1f8dd4c8 100644 --- a/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java +++ b/chat/src/main/java/net/md_5/bungee/api/chat/ComponentBuilder.java @@ -324,6 +324,18 @@ public final class ComponentBuilder return this; } + /** + * Sets the font of the current part. + * + * @param font the new font + * @return this ComponentBuilder for chaining + */ + public ComponentBuilder font(String font) + { + getCurrentComponent().setFont( font ); + return this; + } + /** * Sets whether the current part is bold. *