From dee068f1428cb2bdcfdbfdf6b9d079516d52efd6 Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 3 Sep 2025 02:28:05 +0200 Subject: [PATCH] Adds some missing scope specifiers --- .../knarcraft/knarlib/formatting/FormatBuilder.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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; }