diff --git a/api/ctjs.api b/api/ctjs.api index 793436ae..97b96f97 100644 --- a/api/ctjs.api +++ b/api/ctjs.api @@ -2331,8 +2331,10 @@ public final class com/chattriggers/ctjs/api/world/Scoreboard { public static final fun getTitle ()Lcom/chattriggers/ctjs/api/message/TextComponent; public static final fun setLine (ILcom/chattriggers/ctjs/api/message/TextComponent;)V public static final fun setLine (ILcom/chattriggers/ctjs/api/message/TextComponent;Z)V + public static final fun setLine (ILjava/lang/String;)V public static final fun setLine (ILjava/lang/String;Z)V public static synthetic fun setLine$default (ILcom/chattriggers/ctjs/api/message/TextComponent;ZILjava/lang/Object;)V + public static synthetic fun setLine$default (ILjava/lang/String;ZILjava/lang/Object;)V public static final fun setShouldRender (Z)V public static final fun setTitle (Lcom/chattriggers/ctjs/api/message/TextComponent;)V public static final fun setTitle (Ljava/lang/String;)V diff --git a/src/main/kotlin/com/chattriggers/ctjs/api/world/Scoreboard.kt b/src/main/kotlin/com/chattriggers/ctjs/api/world/Scoreboard.kt index 1cd227ee..199ab340 100644 --- a/src/main/kotlin/com/chattriggers/ctjs/api/world/Scoreboard.kt +++ b/src/main/kotlin/com/chattriggers/ctjs/api/world/Scoreboard.kt @@ -136,7 +136,8 @@ object Scoreboard { } @JvmStatic - fun setLine(score: Int, line: String, override: Boolean) = setLine(score, TextComponent(line), override) + @JvmOverloads + fun setLine(score: Int, line: String, override: Boolean = false) = setLine(score, TextComponent(line), override) @JvmStatic fun setShouldRender(shouldRender: Boolean) {