diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index ffdc23aba..8b015105c 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -125,52 +125,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.4 --remapped
- # Build 1.20.1 NMS
- v1_20_R1:
+ # Build 1.20.2 NMS
+ v1_20_R2:
runs-on: ubuntu-latest
steps:
- - name: Set up JDK 17 # 1.20.1 can only be built with Java 17
+ - name: Set up JDK 17 # 1.20.2 can only be built with Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- - name: Cache 1.20.1 Maven package
+ - name: Cache 1.20.2 Maven package
id: cacheWild_r2
uses: actions/cache@v3
with:
path: |
- ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/
+ ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
- key: ${{ runner.os }}-v1_20_R1
- restore-keys: ${{ runner.os }}-v1_20_R1
+ key: ${{ runner.os }}-v1_20_R2
+ restore-keys: ${{ runner.os }}-v1_20_R2
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
- key: ${{ runner.os }}-m2-v1_20_R1
- restore-keys: ${{ runner.os }}-m2-v1_20_R1
+ key: ${{ runner.os }}-m2-v1_20_R2
+ restore-keys: ${{ runner.os }}-m2-v1_20_R2
- 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.20.1 Spigot
+ - name: Check 1.20.2 Spigot
id: wild
- run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/spigot-1.20.1-R0.1-SNAPSHOT.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- - name: Check 1.20.1 Spigot (Mojang)
+ run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
+ - name: Check 1.20.2 Spigot (Mojang)
id: wildMojang
- run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/spigot-1.20.1-R0.1-SNAPSHOT-remapped-mojang.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- - name: Check 1.20.1 Spigot (Obf)
+ run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT-remapped-mojang.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
+ - name: Check 1.20.2 Spigot (Obf)
id: wildObf
- run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/spigot-1.20.1-R0.1-SNAPSHOT-remapped-obf.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- - name: Build 1.20.1
+ run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT-remapped-obf.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
+ - name: Build 1.20.2
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.20.1 --remapped
+ run: cd BuildTools && java -jar BuildTools.jar --rev 1.20.2 --remapped
# Build Movecraft
build:
runs-on: ubuntu-latest
- needs: [v1_16_R3, v1_18_R2, v1_19_R3, v1_20_R1]
+ needs: [v1_16_R3, v1_18_R2, v1_19_R3, v1_20_R2]
steps:
- name: Checkout Movecraft
@@ -210,15 +210,15 @@ jobs:
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_19_R3
restore-keys: ${{ runner.os }}-v1_19_R3
- - name: Cache 1.20.1 Maven package
+ - name: Cache 1.20.2 Maven package
uses: actions/cache@v3
with:
path: |
- ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/
+ ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
- key: ${{ runner.os }}-v1_20_R1
- restore-keys: ${{ runner.os }}-v1_20_R1
+ key: ${{ runner.os }}-v1_20_R2
+ restore-keys: ${{ runner.os }}-v1_20_R2
- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index fadb71241..267953d27 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -123,52 +123,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.4 --remapped
- # Build 1.20.1 NMS
- v1_20_R1:
+ # Build 1.20.2 NMS
+ v1_20_R2:
runs-on: ubuntu-latest
steps:
- - name: Set up JDK 17 # 1.20.1 can only be built with Java 17
+ - name: Set up JDK 17 # 1.20.2 can only be built with Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'
- - name: Cache 1.20.1 Maven package
+ - name: Cache 1.20.2 Maven package
id: cacheWild_r2
uses: actions/cache@v3
with:
path: |
- ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/
+ ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
- key: ${{ runner.os }}-v1_20_R1
- restore-keys: ${{ runner.os }}-v1_20_R1
+ key: ${{ runner.os }}-v1_20_R2
+ restore-keys: ${{ runner.os }}-v1_20_R2
- name: Cache Maven packages
id: cacheMain
uses: actions/cache@v3
with:
path: ~/.m2
- key: ${{ runner.os }}-m2-v1_20_R1
- restore-keys: ${{ runner.os }}-m2-v1_20_R1
+ key: ${{ runner.os }}-m2-v1_20_R2
+ restore-keys: ${{ runner.os }}-m2-v1_20_R2
- 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.20.1 Spigot
+ - name: Check 1.20.2 Spigot
id: wild
- run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/spigot-1.20.1-R0.1-SNAPSHOT.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- - name: Check 1.20.1 Spigot (Mojang)
+ run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
+ - name: Check 1.20.2 Spigot (Mojang)
id: wildMojang
- run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/spigot-1.20.1-R0.1-SNAPSHOT-remapped-mojang.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- - name: Check 1.20.1 Spigot (Obf)
+ run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT-remapped-mojang.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
+ - name: Check 1.20.2 Spigot (Obf)
id: wildObf
- run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/spigot-1.20.1-R0.1-SNAPSHOT-remapped-obf.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
- - name: Build 1.20.1
+ run: test -f ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/spigot-1.20.2-R0.1-SNAPSHOT-remapped-obf.jar && echo "sucess=true" >> $GITHUB_OUTPUT || echo "sucess=false" >> $GITHUB_OUTPUT
+ - name: Build 1.20.2
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.20.1 --remapped
+ run: cd BuildTools && java -jar BuildTools.jar --rev 1.20.2 --remapped
# Build Movecraft
build:
runs-on: ubuntu-latest
- needs: [v1_16_R3, v1_18_R2, v1_19_R3, v1_20_R1]
+ needs: [v1_16_R3, v1_18_R2, v1_19_R3, v1_20_R2]
steps:
- name: Checkout Movecraft
@@ -208,15 +208,15 @@ jobs:
~/.m2/repository/org/spigotmc/minecraft-server/
key: ${{ runner.os }}-v1_19_R3
restore-keys: ${{ runner.os }}-v1_19_R3
- - name: Cache 1.20.1 Maven package
+ - name: Cache 1.20.2 Maven package
uses: actions/cache@v3
with:
path: |
- ~/.m2/repository/org/spigotmc/spigot/1.20.1-R0.1-SNAPSHOT/
+ ~/.m2/repository/org/spigotmc/spigot/1.20.2-R0.1-SNAPSHOT/
~/.m2/repository/org/spigotmc/spigot-parent/
~/.m2/repository/org/spigotmc/minecraft-server/
- key: ${{ runner.os }}-v1_20_R1
- restore-keys: ${{ runner.os }}-v1_20_R1
+ key: ${{ runner.os }}-v1_20_R2
+ restore-keys: ${{ runner.os }}-v1_20_R2
- name: Build with Maven
run: mvn -T 1C -B package --file pom.xml
diff --git a/README.md b/README.md
index 57e3592be..2ce5fbf0b 100644
--- a/README.md
+++ b/README.md
@@ -24,13 +24,13 @@ Please check the [Wiki](https://github.com/APDevTeam/Movecraft/wiki) and [FAQ](h
[Discord](http://bit.ly/JoinAP-Dev)
## Development Environment
-Movecraft uses multiple versions of the Spigot server software for legacy support. As such, you need to run [BuildTools](https://www.spigotmc.org/wiki/buildtools/) for several versions before building the plugin. It doesn't matter where you do this, but inside the Movecraft directory is probably a bad place. We recommend building Spigot 1.16.5 with Java 13 and Java 17 to build 1.18.2, 1.19.4 & 1.20.1. Alternatively, you can use GitHub codespaces and run the `setup.sh` script to build all the needed versions automatically.
+Movecraft uses multiple versions of the Spigot server software for legacy support. As such, you need to run [BuildTools](https://www.spigotmc.org/wiki/buildtools/) for several versions before building the plugin. It doesn't matter where you do this, but inside the Movecraft directory is probably a bad place. We recommend building Spigot 1.16.5 with Java 13 and Java 17 to build 1.18.2, 1.19.4 & 1.20.2. Alternatively, you can use GitHub codespaces and run the `setup.sh` script to build all the needed versions automatically.
```
java -jar BuildTools.jar --rev 1.16.5 --compile craftbukkit
java -jar BuildTools.jar --rev 1.18.2 --remapped
java -jar BuildTools.jar --rev 1.19.4 --remapped
-java -jar BuildTools.jar --rev 1.20.1 --remapped
+java -jar BuildTools.jar --rev 1.20.2 --remapped
```
Once you have compiled CraftBukkit, it should continue to exist in your local maven repository, and thus you should need to compile each version at most one time. Once complete, run the following to build Movecraft through `maven`.
diff --git a/modules/Movecraft/pom.xml b/modules/Movecraft/pom.xml
index 3cee2145d..68fb1dcc5 100644
--- a/modules/Movecraft/pom.xml
+++ b/modules/Movecraft/pom.xml
@@ -50,7 +50,7 @@
net.countercraft
- movecraft-v1_20_r1
+ movecraft-v1_20_r2
${revision}
jar
@@ -190,7 +190,7 @@
- net.countercraft:movecraft-v1_20_r1
+ net.countercraft:movecraft-v1_20_r2
**
diff --git a/modules/v1_20_R1/src/main/java/net/countercraft/movecraft/support/v1_20_R1/ISmoothTeleport.java b/modules/v1_20_R1/src/main/java/net/countercraft/movecraft/support/v1_20_R1/ISmoothTeleport.java
deleted file mode 100644
index e3c120f23..000000000
--- a/modules/v1_20_R1/src/main/java/net/countercraft/movecraft/support/v1_20_R1/ISmoothTeleport.java
+++ /dev/null
@@ -1,100 +0,0 @@
-package net.countercraft.movecraft.support.v1_20_R1;
-
-import net.countercraft.movecraft.SmoothTeleport;
-import net.countercraft.movecraft.util.ReflectUtils;
-import org.bukkit.Location;
-import org.bukkit.entity.Player;
-import org.jetbrains.annotations.NotNull;
-
-import java.lang.reflect.Constructor;
-import java.lang.reflect.Field;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.Set;
-
-/**
- * Code derived from code taken with permission from MicleBrick
- * https://www.spigotmc.org/threads/teleport-player-smoothly.317416/
- * Used for 1.20.1
- */
-public class ISmoothTeleport extends SmoothTeleport {
- private final Set