diff --git a/src/main/java/net/knarcraft/knarlib/formatting/FormatBuilder.java b/src/main/java/net/knarcraft/knarlib/formatting/FormatBuilder.java index 1cdc440..362cc66 100644 --- a/src/main/java/net/knarcraft/knarlib/formatting/FormatBuilder.java +++ b/src/main/java/net/knarcraft/knarlib/formatting/FormatBuilder.java @@ -42,7 +42,7 @@ public final class FormatBuilder { if (FormatBuilder.stringFormatter == null) { throw NOT_SETUP_EXCEPTION; } - this.toFormat = stringFormatter.getUnFormattedMessage(translatableMessage); + this.toFormat = FormatBuilder.stringFormatter.getUnFormattedMessage(translatableMessage); } /** @@ -104,7 +104,8 @@ public final class FormatBuilder { throw NOT_SETUP_EXCEPTION; } this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, - stringFormatter.getUnFormattedMessage(placeholder), stringFormatter.getUnFormattedMessage(replacement)); + FormatBuilder.stringFormatter.getUnFormattedMessage(placeholder), + FormatBuilder.stringFormatter.getUnFormattedMessage(replacement)); return this; } @@ -122,7 +123,7 @@ public final class FormatBuilder { throw NOT_SETUP_EXCEPTION; } this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, placeholder, - stringFormatter.getUnFormattedMessage(replacement)); + FormatBuilder.stringFormatter.getUnFormattedMessage(replacement)); return this; } @@ -140,7 +141,7 @@ public final class FormatBuilder { throw NOT_SETUP_EXCEPTION; } this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, - stringFormatter.getUnFormattedMessage(placeholder), replacement); + FormatBuilder.stringFormatter.getUnFormattedMessage(placeholder), replacement); return this; } @@ -196,7 +197,7 @@ public final class FormatBuilder { if (FormatBuilder.stringFormatter == null) { throw NOT_SETUP_EXCEPTION; } - this.toFormat = stringFormatter.getUnFormattedColoredMessage(this.toFormat); + this.toFormat = FormatBuilder.stringFormatter.getUnFormattedColoredMessage(this.toFormat); return this; } @@ -224,7 +225,7 @@ public final class FormatBuilder { if (FormatBuilder.stringFormatter == null) { throw NOT_SETUP_EXCEPTION; } - this.toFormat += stringFormatter.getUnFormattedMessage(translatableMessage); + this.toFormat += FormatBuilder.stringFormatter.getUnFormattedMessage(translatableMessage); return this; }