Skip to content

Commit 6ffb6ce

Browse files
committed
Release version 1.2.1
1 parent aeeb871 commit 6ffb6ce

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
java-version: [8, 11]
15+
java-version: [8, 11, 17]
1616

1717
steps:
1818
- name: Checkout repository
@@ -21,7 +21,7 @@ jobs:
2121
- name: Setup JDK ${{ matrix.java-version }}
2222
uses: actions/setup-java@v2
2323
with:
24-
distribution: 'adopt'
24+
distribution: 'temurin'
2525
java-version: ${{ matrix.java-version }}
2626

2727
- name: Build

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
[![Maven Central](https://img.shields.io/maven-central/v/fr.mrmicky/fastboard.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22fr.mrmicky%22%20AND%20a:%22fastboard%22)
55
[![Discord](https://img.shields.io/discord/390919659874156560.svg?colorB=5865f2&label=Discord&logo=discord&logoColor=white)](https://discord.gg/q9UwaBT)
66

7-
Lightweight packet-based scoreboard API for Bukkit plugins, with 1.7.10 to 1.17 support.
7+
Lightweight packet-based scoreboard API for Bukkit plugins, with 1.7.10 to 1.18 support.
88

99
⚠️ To use FastBoard on a 1.8 server, the server must be on 1.8.8.
1010

1111
## Features
1212

1313
* No flickering (without using a buffer)
14-
* Works with all versions from 1.7.10 to 1.17
14+
* Works with all versions from 1.7.10 to 1.18
1515
* Very small (around 600 lines of code with the JavaDoc) and no dependencies
1616
* Easy to use
1717
* Dynamic scoreboard size: you don't need to add/remove lines, you can just give a string list (or array) to change all the lines
@@ -56,7 +56,7 @@ Lightweight packet-based scoreboard API for Bukkit plugins, with 1.7.10 to 1.17
5656
<dependency>
5757
<groupId>fr.mrmicky</groupId>
5858
<artifactId>fastboard</artifactId>
59-
<version>1.2.0</version>
59+
<version>1.2.1</version>
6060
</dependency>
6161
</dependencies>
6262
```
@@ -73,7 +73,7 @@ repositories {
7373
}
7474
7575
dependencies {
76-
implementation 'fr.mrmicky:fastboard:1.2.0'
76+
implementation 'fr.mrmicky:fastboard:1.2.1'
7777
}
7878
7979
shadowJar {

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>fr.mrmicky</groupId>
88
<artifactId>fastboard</artifactId>
9-
<version>1.2.0</version>
9+
<version>1.2.1</version>
1010

1111
<name>FastBoard</name>
1212
<description>Lightweight packet-based scoreboard API for Bukkit plugins.</description>

src/main/java/fr/mrmicky/fastboard/FastBoard.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
* The project is on <a href="https://github.com/MrMicky-FR/FastBoard">GitHub</a>.
5252
*
5353
* @author MrMicky
54-
* @version 1.2.0
54+
* @version 1.2.1
5555
*/
5656
public class FastBoard {
5757

@@ -111,9 +111,8 @@ public class FastBoard {
111111
Field playerConnectionField = Arrays.stream(entityPlayerClass.getFields())
112112
.filter(field -> field.getType().isAssignableFrom(playerConnectionClass))
113113
.findFirst().orElseThrow(NoSuchFieldException::new);
114-
Class<?>[] sendPacketParameters = new Class[]{packetClass};
115114
Method sendPacketMethod = Arrays.stream(playerConnectionClass.getMethods())
116-
.filter(method -> Arrays.equals(method.getParameterTypes(), sendPacketParameters))
115+
.filter(m -> m.getParameterCount() == 1 && m.getParameterTypes()[0] == packetClass)
117116
.findFirst().orElseThrow(NoSuchMethodException::new);
118117

119118
MESSAGE_FROM_STRING = lookup.unreflect(craftChatMessageClass.getMethod("fromString", String.class));

0 commit comments

Comments
 (0)