Skip to content

Commit

Permalink
Fix paper compatibility (#645)
Browse files Browse the repository at this point in the history
* Update libraries

* Add temporary fix for paper

* Update to java 17

* Rename 1.18 package

* Rename 1.19 and 1.20 packages

* Switch from spigot to paper

* Delete Entities.java

* Move to new packages

* Fix worldutils
  • Loading branch information
TylerS1066 authored Jun 9, 2024
1 parent 7ed2c7c commit a5c3d6d
Show file tree
Hide file tree
Showing 31 changed files with 136 additions and 261 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
# Build 1.18.2 NMS
v1_18_R2:
v1_18:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.18.2 can only be built with Java 17
Expand All @@ -25,15 +25,15 @@ jobs:
~/.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 }}-v1_18_R2
restore-keys: ${{ runner.os }}-v1_18_R2
key: ${{ runner.os }}-v1_18
restore-keys: ${{ runner.os }}-v1_18
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_18_R2
restore-keys: ${{ runner.os }}-m2-v1_18_R2
key: ${{ runner.os }}-m2-v1_18
restore-keys: ${{ runner.os }}-m2-v1_18

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Expand All @@ -51,7 +51,7 @@ jobs:
run: cd BuildTools && java -jar BuildTools.jar --rev 1.18.2 --remapped

# Build 1.19.4 NMS
v1_19_R3:
v1_19:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.19.4 can only be built with Java 17
Expand All @@ -67,15 +67,15 @@ jobs:
~/.m2/repository/org/spigotmc/spigot/1.19.4-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_19_R3
restore-keys: ${{ runner.os }}-v1_19_R3
key: ${{ runner.os }}-v1_19
restore-keys: ${{ runner.os }}-v1_19
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_19_R3
restore-keys: ${{ runner.os }}-m2-v1_19_R3
key: ${{ runner.os }}-m2-v1_19
restore-keys: ${{ runner.os }}-m2-v1_19

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Expand All @@ -93,7 +93,7 @@ jobs:
run: cd BuildTools && java -jar BuildTools.jar --rev 1.19.4 --remapped

# Build 1.20.6 NMS
v1_20_R4:
v1_20:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 21 # 1.20.6 can only be built with Java 21
Expand All @@ -109,15 +109,15 @@ jobs:
~/.m2/repository/org/spigotmc/spigot/1.20.6-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_20_R4
restore-keys: ${{ runner.os }}-v1_20_R4
key: ${{ runner.os }}-v1_20
restore-keys: ${{ runner.os }}-v1_20
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_20_R4
restore-keys: ${{ runner.os }}-m2-v1_20_R4
key: ${{ runner.os }}-m2-v1_20
restore-keys: ${{ runner.os }}-m2-v1_20

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Expand All @@ -137,7 +137,7 @@ jobs:
# Build Movecraft
build:
runs-on: ubuntu-latest
needs: [v1_18_R2, v1_19_R3, v1_20_R4]
needs: [v1_18, v1_19, v1_20]

steps:
- name: Checkout Movecraft
Expand All @@ -160,26 +160,26 @@ jobs:
~/.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 }}-v1_18_R2
restore-keys: ${{ runner.os }}-v1_18_R2
key: ${{ runner.os }}-v1_18
restore-keys: ${{ runner.os }}-v1_18
- name: Cache 1.19.4 Maven package
uses: actions/cache@v3
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.4-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_19_R3
restore-keys: ${{ runner.os }}-v1_19_R3
key: ${{ runner.os }}-v1_19
restore-keys: ${{ runner.os }}-v1_19
- name: Cache 1.20.6 Maven package
uses: actions/cache@v3
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.20.6-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_20_R4
restore-keys: ${{ runner.os }}-v1_20_R4
key: ${{ runner.os }}-v1_20
restore-keys: ${{ runner.os }}-v1_20

- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
# Build 1.18.2 NMS
v1_18_R2:
v1_18:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.18.2 can only be built with Java 17
Expand All @@ -23,15 +23,15 @@ jobs:
~/.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 }}-v1_18_R2
restore-keys: ${{ runner.os }}-v1_18_R2
key: ${{ runner.os }}-v1_18
restore-keys: ${{ runner.os }}-v1_18
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_18_R2
restore-keys: ${{ runner.os }}-m2-v1_18_R2
key: ${{ runner.os }}-m2-v1_18
restore-keys: ${{ runner.os }}-m2-v1_18

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Expand All @@ -49,7 +49,7 @@ jobs:
run: cd BuildTools && java -jar BuildTools.jar --rev 1.18.2 --remapped

# Build 1.19.4 NMS
v1_19_R3:
v1_19:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 17 # 1.19.4 can only be built with Java 17
Expand All @@ -65,15 +65,15 @@ jobs:
~/.m2/repository/org/spigotmc/spigot/1.19.4-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_19_R3
restore-keys: ${{ runner.os }}-v1_19_R3
key: ${{ runner.os }}-v1_19
restore-keys: ${{ runner.os }}-v1_19
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_19_R3
restore-keys: ${{ runner.os }}-m2-v1_19_R3
key: ${{ runner.os }}-m2-v1_19
restore-keys: ${{ runner.os }}-m2-v1_19

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Expand All @@ -91,7 +91,7 @@ jobs:
run: cd BuildTools && java -jar BuildTools.jar --rev 1.19.4 --remapped

# Build 1.20.6 NMS
v1_20_R4:
v1_20:
runs-on: ubuntu-latest
steps:
- name: Set up JDK 21 # 1.20.6 can only be built with Java 21
Expand All @@ -107,15 +107,15 @@ jobs:
~/.m2/repository/org/spigotmc/spigot/1.20.6-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_20_R4
restore-keys: ${{ runner.os }}-v1_20_R4
key: ${{ runner.os }}-v1_20
restore-keys: ${{ runner.os }}-v1_20
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-v1_20_R4
restore-keys: ${{ runner.os }}-m2-v1_20_R4
key: ${{ runner.os }}-m2-v1_20
restore-keys: ${{ runner.os }}-m2-v1_20

- name: Setup BuildTools
run: mkdir BuildTools && wget -O BuildTools/BuildTools.jar https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
Expand All @@ -135,7 +135,7 @@ jobs:
# Build Movecraft
build:
runs-on: ubuntu-latest
needs: [v1_18_R2, v1_19_R3, v1_20_R4]
needs: [v1_18, v1_19, v1_20]

steps:
- name: Checkout Movecraft
Expand All @@ -158,26 +158,26 @@ jobs:
~/.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 }}-v1_18_R2
restore-keys: ${{ runner.os }}-v1_18_R2
key: ${{ runner.os }}-v1_18
restore-keys: ${{ runner.os }}-v1_18
- name: Cache 1.19.4 Maven package
uses: actions/cache@v3
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.19.4-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_19_R3
restore-keys: ${{ runner.os }}-v1_19_R3
key: ${{ runner.os }}-v1_19
restore-keys: ${{ runner.os }}-v1_19
- name: Cache 1.20.6 Maven package
uses: actions/cache@v3
with:
path: |
~/.m2/repository/org/spigotmc/spigot/1.20.6-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_20_R4
restore-keys: ${{ runner.os }}-v1_20_R4
key: ${{ runner.os }}-v1_20
restore-keys: ${{ runner.os }}-v1_20

- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ Movecraft

This is a maintained fork of Movecraft, which aims to add legacy version support as well as performance fixes.

**Movecraft requires at least Java 13**
**Movecraft requires at least Java 17**

## Download

Public builds, as well as builds as old as v5.0 (for 1.9), are located on the [Spigot forums](https://www.spigotmc.org/resources/movecraft.31321/).
Releases can be found on the [releases tab](https://github.com/APDevTeam/Movecraft/releases).

Preliminary builds (including 1.14+ support), can be found on the [releases tab](https://github.com/APDevTeam/Movecraft/releases).

Development builds can be found under the [actions tab](https://github.com/APDevTeam/Movecraft/actions?query=workflow%3A%22Java+CI%22). Use at your own risk!
Previous builds between v5.0 (for 1.9) and v7 (for 1.12), are located on the [Spigot forums](https://www.spigotmc.org/resources/movecraft.31321/).

Legacy builds as old as v0.7.1 (for 1.0.0) can be found on the original [Bukkit page](https://dev.bukkit.org/projects/movecraft).

Development builds can be found under the [actions tab](https://github.com/APDevTeam/Movecraft/actions?query=workflow%3A%22Java+CI%22). Use at your own risk!

## Support
Please check the [Wiki](https://github.com/APDevTeam/Movecraft/wiki) and [FAQ](https://github.com/APDevTeam/Movecraft/wiki/Frequently-Asked-Questions) pages before asking for help!

Expand Down
23 changes: 8 additions & 15 deletions modules/Movecraft/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,22 @@
</pluginRepository>
</pluginRepositories>

<repositories>
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>

<dependencies>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-v1_18_r2</artifactId>
<artifactId>movecraft-v1_18</artifactId>
<version>${revision}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-v1_19_r3</artifactId>
<artifactId>movecraft-v1_19</artifactId>
<version>${revision}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>net.countercraft</groupId>
<artifactId>movecraft-v1_20_R4</artifactId>
<artifactId>movecraft-v1_20</artifactId>
<version>${revision}</version>
<type>jar</type>
</dependency>
Expand Down Expand Up @@ -125,8 +118,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<source>16</source>
<target>16</target>
<source>17</source>
<target>17</target>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -166,19 +159,19 @@
<createDependencyReducedPom>false</createDependencyReducedPom>
<filters>
<filter>
<artifact>net.countercraft:movecraft-v1_18_r2</artifact>
<artifact>net.countercraft:movecraft-v1_18</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>net.countercraft:movecraft-v1_19_r3</artifact>
<artifact>net.countercraft:movecraft-v1_19</artifact>
<includes>
<include>**</include>
</includes>
</filter>
<filter>
<artifact>net.countercraft:movecraft-v1_20_R4</artifact>
<artifact>net.countercraft:movecraft-v1_20</artifact>
<includes>
<include>**</include>
</includes>
Expand Down
Loading

0 comments on commit a5c3d6d

Please sign in to comment.