diff --git a/src/main/java/net/minestom/server/chat/TranslatableText.java b/src/main/java/net/minestom/server/chat/TranslatableText.java index 8748a911d..2baf855ea 100644 --- a/src/main/java/net/minestom/server/chat/TranslatableText.java +++ b/src/main/java/net/minestom/server/chat/TranslatableText.java @@ -10,7 +10,11 @@ public class TranslatableText { this.arguments = arguments; } - public static TranslatableText TranslatableText(String code, String... arguments) { + public static TranslatableText of(String code) { + return new TranslatableText(code, null); + } + + public static TranslatableText of(String code, String... arguments) { return new TranslatableText(code, arguments); }