Skip to content

Commit

Permalink
Release version 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMicky-FR committed Dec 3, 2021
1 parent aeeb871 commit 6ffb6ce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
java-version: [8, 11]
java-version: [8, 11, 17]

steps:
- name: Checkout repository
Expand All @@ -21,7 +21,7 @@ jobs:
- name: Setup JDK ${{ matrix.java-version }}
uses: actions/setup-java@v2
with:
distribution: 'adopt'
distribution: 'temurin'
java-version: ${{ matrix.java-version }}

- name: Build
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
[![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)
[![Discord](https://img.shields.io/discord/390919659874156560.svg?colorB=5865f2&label=Discord&logo=discord&logoColor=white)](https://discord.gg/q9UwaBT)

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

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

## Features

* No flickering (without using a buffer)
* Works with all versions from 1.7.10 to 1.17
* Works with all versions from 1.7.10 to 1.18
* Very small (around 600 lines of code with the JavaDoc) and no dependencies
* Easy to use
* 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
Expand Down Expand Up @@ -56,7 +56,7 @@ Lightweight packet-based scoreboard API for Bukkit plugins, with 1.7.10 to 1.17
<dependency>
<groupId>fr.mrmicky</groupId>
<artifactId>fastboard</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
</dependency>
</dependencies>
```
Expand All @@ -73,7 +73,7 @@ repositories {
}
dependencies {
implementation 'fr.mrmicky:fastboard:1.2.0'
implementation 'fr.mrmicky:fastboard:1.2.1'
}
shadowJar {
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>fr.mrmicky</groupId>
<artifactId>fastboard</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>

<name>FastBoard</name>
<description>Lightweight packet-based scoreboard API for Bukkit plugins.</description>
Expand Down
5 changes: 2 additions & 3 deletions src/main/java/fr/mrmicky/fastboard/FastBoard.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
* The project is on <a href="https://github.com/MrMicky-FR/FastBoard">GitHub</a>.
*
* @author MrMicky
* @version 1.2.0
* @version 1.2.1
*/
public class FastBoard {

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

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

0 comments on commit 6ffb6ce

Please sign in to comment.