Skip to content

Commit 7a4696d

Browse files
committed
Bumped version and locked down to 1.20.60
1 parent 08e50b0 commit 7a4696d

5 files changed

Lines changed: 90 additions & 8 deletions

File tree

.github/workflows/build.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: Build and Release
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- 'v*'
8+
branches:
9+
- '**'
10+
pull_request:
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
build-gradle:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Setup Java
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: 'temurin'
28+
java-version: '21'
29+
30+
- name: Setup Gradle
31+
uses: gradle/actions/setup-gradle@v4
32+
33+
- name: Build with Gradle
34+
run: ./gradlew build
35+
36+
- name: Read project metadata
37+
id: project
38+
shell: bash
39+
run: |
40+
VERSION=$(./gradlew properties -q | sed -n 's/^version: //p')
41+
42+
echo "artifact_id=AnyVersion" >> "$GITHUB_OUTPUT"
43+
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
44+
echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"
45+
echo "jar_path=build/libs/AnyVersion.jar" >> "$GITHUB_OUTPUT"
46+
47+
- name: Verify artifact
48+
shell: bash
49+
run: |
50+
if [ ! -f "${{ steps.project.outputs.jar_path }}" ]; then
51+
echo "${{ steps.project.outputs.jar_path }} was not created"
52+
exit 1
53+
fi
54+
55+
- name: Upload artifacts
56+
uses: actions/upload-artifact@v4
57+
if: success()
58+
with:
59+
name: ${{ steps.project.outputs.artifact_id }}
60+
path: ${{ steps.project.outputs.jar_path }}
61+
62+
- name: Create GitHub release
63+
if: github.event_name == 'push' && (github.ref_type == 'tag' || github.ref_name == github.event.repository.default_branch)
64+
env:
65+
GH_TOKEN: ${{ github.token }}
66+
run: |
67+
if [ "${{ github.ref_type }}" = "tag" ]; then
68+
RELEASE_TAG="${{ github.ref_name }}"
69+
else
70+
RELEASE_TAG="${{ steps.project.outputs.tag }}"
71+
fi
72+
73+
RELEASE_NOTES=$(gh api "repos/${{ github.repository }}/releases/generate-notes" \
74+
-f tag_name="$RELEASE_TAG" \
75+
-f target_commitish="${{ github.sha }}" \
76+
--jq .body)
77+
78+
if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
79+
gh release upload "$RELEASE_TAG" "${{ steps.project.outputs.jar_path }}" --clobber
80+
gh release edit "$RELEASE_TAG" --notes "$RELEASE_NOTES"
81+
else
82+
gh release create "$RELEASE_TAG" "${{ steps.project.outputs.jar_path }}" --target "${{ github.sha }}" --title "$RELEASE_TAG" --notes "$RELEASE_NOTES"
83+
fi

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<img width="3550" height="1722" alt="grafik" src="https://github.com/user-attachments/assets/1e99b107-6661-41e8-a15a-f67dedfbb5fc" />
22

3-
# AnyVersion - Allow your players to join with older clients down to 1.19.70
3+
# AnyVersion - Allow your players to join with older clients down to 1.20.60
44

55
AnyVersion is a plugin that allows your players to play with older clients.
66
This plugin is more than a protocol version bypass. It actually translates newer packets to older clients (vice versa).
77

88
Please be aware that this plugin has to be updated with every new minecraft version.
9-
Even though this plugin allows players to join with versions down to 1.19.70, we only offer support for versions down to 1.20.3.
10-
This is because on versions below, custom blocks are not longer translated. For version below 1.20.0, you cannot even connect anymore without disabling xbox auth. And on 1.19.70, there were no BlockHashes, which PNX uses.
11-
Therefore dont expect help from us when players with clients lower than 1.20.3 have problems on your server. (Thats old enough anyways)
9+
AnyVersion currently allows players to join with versions down to 1.20.60.
10+
Clients below 1.20.60 are no longer supported and are not expected to work.
1211

13-
If using WaterdogPE, you probably want to use [SyodogPE](https://github.com/Syodo-Development/SyodogPE).
12+
If using WaterdogPE, you probably want to use [SyodogPE](https://github.com/Syodo-Development/SyodogPE).
1413
AnyVersion works with base WaterdogPE, but your WDPE console might get spammed with some warnings you can just ignore.

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group = "org.powernukkitx.anyversion"
7-
version = "2.8.2"
7+
version = "2.8.3"
88

99
java {
1010
toolchain {

src/main/java/org/powernukkitx/anyversion/utils/ProtocolVersion.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public String version() {
138138
}
139139

140140
public static ProtocolVersion getMin() {
141-
return versions[0];
141+
return MINECRAFT_PE_1_20_60;
142142
}
143143

144144
public static ProtocolVersion getMax() {

src/main/resources/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AnyVersion configuration file
22
# Please edit it if do you know what you are doing.
33

4-
lowestVersion: 618 # The lowest version the client can join. Default is 618 (1.20.30)
4+
lowestVersion: 649 # The lowest version the client can join. Default is 649 (1.20.60)
55

66
configVersion: 1.0.0 # Do not change this.

0 commit comments

Comments
 (0)