Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minecraft 1.19.3 Support #556

Merged
merged 27 commits into from
Dec 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
d0c64ea
Update libraries
TylerS1066 Dec 3, 2022
7a151c9
Clean up redundant libraries and relocate roaringbitmap
TylerS1066 Dec 3, 2022
e563cc1
Remove 1.17.1
TylerS1066 Dec 8, 2022
e265915
Initial stab at 1.19.3 worldhandler
TylerS1066 Dec 8, 2022
00440e3
Change magic number, add mappings links
TylerS1066 Dec 9, 2022
adfe09d
Update CI?
TylerS1066 Dec 9, 2022
2f1d0c2
Update pom to include 1.19.3 worldhandler
TylerS1066 Dec 9, 2022
2289089
Update setup for 1.19.3
TylerS1066 Dec 9, 2022
6b3f888
Move TeleportUtils
TylerS1066 Dec 12, 2022
9b75c81
Create smooth teleport base class and bukkit implementation
TylerS1066 Dec 12, 2022
2f8c69d
Remove smooth teleport from worldhandlers
TylerS1066 Dec 12, 2022
66bf658
More work on smooth teleport handlers
TylerS1066 Dec 12, 2022
bd3c2d8
Revert "Remove 1.17.1"
TylerS1066 Dec 12, 2022
d688dce
Restore 1.17 CI
TylerS1066 Dec 12, 2022
ce2e392
Update ISmoothTeleport.java
TylerS1066 Dec 12, 2022
5f6ac73
Update ISmoothTeleport.java
TylerS1066 Dec 12, 2022
489b3af
Update ISmoothTeleport.java
TylerS1066 Dec 12, 2022
881dc38
Fix compile issues
TylerS1066 Dec 12, 2022
92e9429
Delete ConfigManager.java
TylerS1066 Dec 12, 2022
e44a4b8
Attempt to fix CI
TylerS1066 Dec 12, 2022
eeb094c
Attempt to fix CI
TylerS1066 Dec 12, 2022
ed80528
Catch exception and warn on fallback
TylerS1066 Dec 17, 2022
ec15f68
Create ISmoothTeleport.java
TylerS1066 Dec 17, 2022
8994a02
Refactor initialize method
TylerS1066 Dec 17, 2022
c6536f4
Update version and setup script
TylerS1066 Dec 17, 2022
ab2779a
Re-add 1.17.1 worldhandler
TylerS1066 Dec 17, 2022
c3af06a
Do it correctly now...
TylerS1066 Dec 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 122 additions & 70 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ jobs:
run: cd BuildTools && java -jar BuildTools.jar --rev 1.18.2 --remapped

# Build 1.19.2 NMS
wild_1_19:
wild_1_19_2:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.19.2 can only be built with Java 17
Expand All @@ -163,7 +163,7 @@ jobs:
distribution: 'temurin'
java-version: '17'
- name: Cache 1.19.2 Maven package
id: cacheWild
id: cacheWild_r1
uses: actions/cache@v2
with:
path: |
Expand Down Expand Up @@ -195,78 +195,130 @@ jobs:
if: steps.wild.outputs.sucess != 'true' || steps.wildMojang.outputs.sucess != 'true' || steps.wildObf.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.19.2 --remapped

# Build 1.19.3 NMS
wild_1_19_3:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.19.3 can only be built with Java 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Cache 1.19.3 Maven package
id: cacheWild_r2
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.3-all
restore-keys: ${{ runner.os }}-spigot-1.19.3-all
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2_1.19.3
restore-keys: ${{ runner.os }}-m2_1.19.3

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- name: Check 1.19.3 Spigot
id: wild
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Check 1.19.3 Spigot (Mojang)
id: wildMojang
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT-remapped-mojang.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Check 1.19.3 Spigot (Obf)
id: wildObf
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT-remapped-obf.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Build 1.19.3
if: steps.wild.outputs.sucess != 'true' || steps.wildMojang.outputs.sucess != 'true' || steps.wildObf.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.19.3 --remapped

# Build Movecraft
build:
runs-on: ubuntu-latest
needs: [pillage_1_14, nether_1_16, goats_1_17, caves_1_18, wild_1_19]
needs: [pillage_1_14, nether_1_16, goats_1_17, caves_1_18, wild_1_19_2, wild_1_19_3]

steps:
- name: Checkout Movecraft
uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Cache 1.14.4 Maven package
id: cachePillage
uses: actions/cache@v2
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.14.4-R0.1-SNAPSHOT/
key: ${{ runner.os }}-1.14.4
restore-keys: ${{ runner.os }}-1.14.4
- name: Cache 1.16.5 Maven package
id: cacheNether
uses: actions/cache@v2
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/
key: ${{ runner.os }}-1.16.5
restore-keys: ${{ runner.os }}-1.16.5
- name: Cache 1.17.1 Maven package
id: cacheGoats
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.17.1-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.17.1-all
restore-keys: ${{ runner.os }}-spigot-1.17.1-all
- name: Cache 1.18.2 Maven package
id: cacheCaves
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.18.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.18.2-all
restore-keys: ${{ runner.os }}-spigot-1.18.2-all
- name: Cache 1.19.2 Maven package
id: cacheWild
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.2-all
restore-keys: ${{ runner.os }}-spigot-1.19.2-all
- name: Checkout Movecraft
uses: actions/checkout@v1
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2
restore-keys: ${{ runner.os }}-m2
- name: Cache 1.14.4 Maven package
id: cachePillage
uses: actions/cache@v2
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.14.4-R0.1-SNAPSHOT/
key: ${{ runner.os }}-1.14.4
restore-keys: ${{ runner.os }}-1.14.4
- name: Cache 1.16.5 Maven package
id: cacheNether
uses: actions/cache@v2
with:
path: ~/.m2/repository/org/bukkit/craftbukkit/1.16.5-R0.1-SNAPSHOT/
key: ${{ runner.os }}-1.16.5
restore-keys: ${{ runner.os }}-1.16.5
- name: Cache 1.17.1 Maven package
id: cacheGoats
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.17.1-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.17.1-all
restore-keys: ${{ runner.os }}-spigot-1.17.1-all
- name: Cache 1.18.2 Maven package
id: cacheCaves
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.18.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.18.2-all
restore-keys: ${{ runner.os }}-spigot-1.18.2-all
- name: Cache 1.19.2 Maven package
id: cacheWild_r1
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.2-all
restore-keys: ${{ runner.os }}-spigot-1.19.2-all
- name: Cache 1.19.3 Maven package
id: cacheWild_r2
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.3-all
restore-keys: ${{ runner.os }}-spigot-1.19.3-all

- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml
- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml

- name: Stage jar
run: mkdir staging && cp target/Movecraft.jar staging && mv staging/Movecraft.jar staging/Movecraft_$GITHUB_SHA.jar
- name: Upload jar
uses: actions/upload-artifact@v2
with:
name: Movecraft_Dev-Build
path: staging/Movecraft_*.jar
- name: Stage jar
run: mkdir staging && cp target/Movecraft.jar staging && mv staging/Movecraft.jar staging/Movecraft_$GITHUB_SHA.jar
- name: Upload jar
uses: actions/upload-artifact@v2
with:
name: Movecraft_Dev-Build
path: staging/Movecraft_*.jar
60 changes: 56 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ jobs:
run: cd BuildTools && java -jar BuildTools.jar --rev 1.18.2 --remapped

# Build 1.19.2 NMS
wild_1_19:
wild_1_19_2:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.19.2 can only be built with Java 17
Expand All @@ -166,7 +166,7 @@ jobs:
distribution: 'temurin'
java-version: '17'
- name: Cache 1.19.2 Maven package
id: cacheWild
id: cacheWild_r1
uses: actions/cache@v2
with:
path: |
Expand Down Expand Up @@ -198,10 +198,52 @@ jobs:
if: steps.wild.outputs.sucess != 'true' || steps.wildMojang.outputs.sucess != 'true' || steps.wildObf.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.19.2 --remapped

# Build 1.19.3 NMS
wild_1_19_3:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.19.3 can only be built with Java 17
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: '17'
- name: Cache 1.19.3 Maven package
id: cacheWild_r2
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.3-all
restore-keys: ${{ runner.os }}-spigot-1.19.3-all
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2_1.19.3
restore-keys: ${{ runner.os }}-m2_1.19.3

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
- name: Check 1.19.3 Spigot
id: wild
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Check 1.19.3 Spigot (Mojang)
id: wildMojang
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT-remapped-mojang.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Check 1.19.3 Spigot (Obf)
id: wildObf
run: test -f ~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/spigot-1.19.3-R0.1-SNAPSHOT-remapped-obf.jar && echo "::set-output name=sucess::true" || echo "::set-output name=sucess::false"
- name: Build 1.19.3
if: steps.wild.outputs.sucess != 'true' || steps.wildMojang.outputs.sucess != 'true' || steps.wildObf.outputs.sucess != 'true'
run: cd BuildTools && java -jar BuildTools.jar --rev 1.19.3 --remapped

# Build Movecraft
publish:
runs-on: ubuntu-latest
needs: [pillage_1_14, nether_1_16, goats_1_17, caves_1_18, wild_1_19]
needs: [pillage_1_14, nether_1_16, goats_1_17, caves_1_18, wild_1_19_2, wild_1_19_3]
permissions:
contents: read
packages: write
Expand Down Expand Up @@ -256,7 +298,7 @@ jobs:
key: ${{ runner.os }}-spigot-1.18.2-all
restore-keys: ${{ runner.os }}-spigot-1.18.2-all
- name: Cache 1.19.2 Maven package
id: cacheWild
id: cacheWild_r1
uses: actions/cache@v2
with:
path: |
Expand All @@ -265,6 +307,16 @@ jobs:
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.2-all
restore-keys: ${{ runner.os }}-spigot-1.19.2-all
- name: Cache 1.19.3 Maven package
id: cacheWild_r2
uses: actions/cache@v2
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.3-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-spigot-1.19.3-all
restore-keys: ${{ runner.os }}-spigot-1.19.3-all

- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml
Expand Down
29 changes: 17 additions & 12 deletions modules/Movecraft/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@
<version>${revision}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-v1_19_r2</artifactId>
<version>${revision}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-api</artifactId>
Expand All @@ -83,18 +89,7 @@
<dependency>
<groupId>org.yaml</groupId>
<artifactId>snakeyaml</artifactId>
<version>1.32</version>
</dependency>
<dependency>
<groupId>org.jetbrains</groupId>
<artifactId>annotations-java5</artifactId>
<version>22.0.0</version>
</dependency>
<dependency>
<groupId>it.unimi.dsi</groupId>
<artifactId>fastutil</artifactId>
<version>8.5.8</version>
<scope>compile</scope>
<version>1.33</version>
</dependency>
</dependencies>

Expand Down Expand Up @@ -188,6 +183,10 @@
<pattern>net.kyori</pattern>
<shadedPattern>net.countercraft.movecraft.libs.net.kyori</shadedPattern>
</relocation>
<relocation>
<pattern>org.roaringbitmap</pattern>
<shadedPattern>net.countercraft.movecraft.libs.org.roaringbitmap</shadedPattern>
</relocation>
</relocations>
<minimizeJar>true</minimizeJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
Expand Down Expand Up @@ -222,6 +221,12 @@
<include>**</include>
</includes>
</filter>
<filter>
<artifact>net.countercraft:movecraft-v1_19_r2</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>net.countercraft:datapack</artifact>
<includes>
Expand Down
Loading