File tree Expand file tree Collapse file tree
src/main/java/me/fallenbreath/velocitypingplayerlist Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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/
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ A [velocity](https://github.com/PaperMC/Velocity) plugin to show player list in
44
55Configuration 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 )
Original file line number Diff line number Diff line change @@ -14,8 +14,8 @@ repositories {
1414}
1515
1616java {
17- sourceCompatibility = JavaVersion . VERSION_17
18- targetCompatibility = JavaVersion . VERSION_17
17+ sourceCompatibility = JavaVersion . VERSION_21
18+ targetCompatibility = JavaVersion . VERSION_21
1919}
2020
2121dependencies {
Original file line number Diff line number Diff line change 1- velocity_api_version =3.4 .0-SNAPSHOT
1+ velocity_api_version =3.5 .0-SNAPSHOT
22plugin_version =0.1.0
Original file line number Diff line number Diff line change 11package me .fallenbreath .velocitypingplayerlist ;
22
33import org .slf4j .Logger ;
4+ import org .yaml .snakeyaml .LoaderOptions ;
45import org .yaml .snakeyaml .Yaml ;
56import 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 )
You can’t perform that action at this time.
0 commit comments