You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -59,7 +60,7 @@ Lightweight packet-based scoreboard API for Bukkit plugins, with 1.7.10 to 1.20.
59
60
<dependency>
60
61
<groupId>fr.mrmicky</groupId>
61
62
<artifactId>fastboard</artifactId>
62
-
<version>2.1.2</version>
63
+
<version>2.1.3</version>
63
64
</dependency>
64
65
</dependencies>
65
66
```
@@ -79,7 +80,7 @@ repositories {
79
80
}
80
81
81
82
dependencies {
82
-
implementation 'fr.mrmicky:fastboard:2.1.2'
83
+
implementation 'fr.mrmicky:fastboard:2.1.3'
83
84
}
84
85
85
86
shadowJar {
@@ -187,24 +188,28 @@ public final class ExamplePlugin extends JavaPlugin implements Listener {
187
188
188
189
For servers on modern [PaperMC](https://papermc.io) versions, FastBoard supports
189
190
using [Adventure](https://github.com/KyoriPowered/adventure) components instead of strings,
190
-
by using the class `fr.mrmicky.fastboard.adventure.FastBoard`.
191
+
by using the `fr.mrmicky.fastboard.adventure.FastBoard` class.
192
+
193
+
> [!WARNING]
194
+
> With Adventure, on servers below Minecraft 1.13, lines are truncated to a maximum of 16 characters.
195
+
> To get around this limit, upgrade to a newer version of Minecraft or use the non-Adventure version (`fr.mrmicky.fastboard.FastBoard`).
191
196
192
197
## RGB colors
193
198
194
199
When using the non-Adventure version of FastBoard, RGB colors can be added on 1.16 and higher with `ChatColor.of("#RRGGBB")` (`net.md_5.bungee.api.ChatColor` import).
195
200
196
201
## Custom number formatting
197
202
198
-
For servers on Minecraft 1.20.3 and higher, FastBoard supports custom number formatting for scores.
199
-
By default, the blank format is used, so no score is visible, but it's also possible to specify custom scores using `FastBoard#updateLine(line, text, scoreText)`,
203
+
For servers on Minecraft 1.20.3 and above, FastBoard supports custom number formatting for scores.
204
+
By default, it uses the blank format, so that no score is visible, but it's also possible to set custom scores using `FastBoard#updateLine(line, text, scoreText)`,
200
205
`FastBoard#updateLines(lines, scores)` and `FastBoard#updateScore(line, text)`.
201
206
202
207
Passing a `null` value as a score will result in a reset to the default blank formatting.
203
208
204
209
## ViaBackwards compatibility
205
210
206
211
When using ViaBackwards on a post-1.13 server with pre-1.13 clients, older clients
207
-
might get incomplete lines. To solve this issue, you can override the method `hasLinesMaxLength()` and return `true` for older clients.
212
+
may receive incomplete lines. To solve this problem, you can override the `hasLinesMaxLength()` method and return `true` for older clients.
0 commit comments