Skip to content

Commit 5768d0e

Browse files
committed
compat velocity 3.5.0
1 parent a3a7481 commit 5768d0e

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/gradle.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ jobs:
66
build:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v4
9+
- uses: actions/checkout@v6
1010

11-
- name: Set up JDK 17
12-
uses: actions/setup-java@v4
11+
- name: Set up JDK 21
12+
uses: actions/setup-java@v5
1313
with:
14-
java-version: 17
14+
java-version: 21
1515
distribution: 'temurin'
1616
cache: 'gradle'
1717

@@ -21,7 +21,7 @@ jobs:
2121
./gradlew build
2222
2323
- name: Upload artifacts
24-
uses: actions/upload-artifact@v4
24+
uses: actions/upload-artifact@v6
2525
with:
2626
name: build-artifacts
2727
path: build/libs/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ A [velocity](https://github.com/PaperMC/Velocity) plugin to show player list in
44

55
Configuration file: `plugin/velocitypingplayerlist/config.yml`
66

7-
Tested with velocity `3.4.0`
7+
Tested with velocity `3.5.0`
88

99
![screenshot](screenshot.png)

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ repositories {
1414
}
1515

1616
java {
17-
sourceCompatibility = JavaVersion.VERSION_17
18-
targetCompatibility = JavaVersion.VERSION_17
17+
sourceCompatibility = JavaVersion.VERSION_21
18+
targetCompatibility = JavaVersion.VERSION_21
1919
}
2020

2121
dependencies {

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
velocity_api_version=3.4.0-SNAPSHOT
1+
velocity_api_version=3.5.0-SNAPSHOT
22
plugin_version=0.1.0

src/main/java/me/fallenbreath/velocitypingplayerlist/Config.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package me.fallenbreath.velocitypingplayerlist;
22

33
import org.slf4j.Logger;
4+
import org.yaml.snakeyaml.LoaderOptions;
45
import org.yaml.snakeyaml.Yaml;
56
import org.yaml.snakeyaml.constructor.Constructor;
67

@@ -50,7 +51,7 @@ public boolean load()
5051

5152
try
5253
{
53-
Yaml yaml = new Yaml(new Constructor(ConfigData.class));
54+
Yaml yaml = new Yaml(new Constructor(ConfigData.class, new LoaderOptions()));
5455
this.configData = yaml.loadAs(Files.readString(file.toPath()), ConfigData.class);
5556
}
5657
catch (Exception e)

0 commit comments

Comments
 (0)