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

1.20.5 Support (part 2) #6630

Merged
merged 26 commits into from
May 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
87d0be6
Internal support for aliases item components
APickledWalrus Apr 26, 2024
69a779d
Update aliases submodule
APickledWalrus Apr 27, 2024
9625ea8
Update isRunningMethod check
APickledWalrus Apr 27, 2024
68fbfbc
Add ability to opt out of deduplication
APickledWalrus Apr 27, 2024
c073ccc
Update skript-aliases
APickledWalrus Apr 27, 2024
20d18ad
Merge branch 'dev/patch' into patch/1.20.5-support
Moderocky Apr 27, 2024
0a10072
Update skript-aliases
APickledWalrus Apr 30, 2024
45ef181
Update skript-aliases
APickledWalrus Apr 30, 2024
0437153
Update Gradle to 8.7
APickledWalrus Apr 30, 2024
bdd19cd
Update Paper to 1.20.6
APickledWalrus Apr 30, 2024
dff1ab7
Merge branch 'dev/patch' into patch/1.20.5-support
APickledWalrus Apr 30, 2024
a69e518
Fix latest env for testing
APickledWalrus Apr 30, 2024
46f9db2
Fix AreaEffectCloudApplyEvent event value
APickledWalrus Apr 30, 2024
822cf42
Fix vehicle dismount events
APickledWalrus Apr 30, 2024
822c8c4
Fix potions
APickledWalrus Apr 30, 2024
314d72c
Get visual effects building
APickledWalrus Apr 30, 2024
2d96d8e
Fix unused AbstractList implementation
APickledWalrus Apr 30, 2024
dcf806d
Fix remaining Java 17 references
APickledWalrus Apr 30, 2024
337fcba
Fix 1.17 testing
APickledWalrus Apr 30, 2024
442e5f2
Add missing PotionDataUtils check
APickledWalrus Apr 30, 2024
0ebd6d2
Add missing lang entries
APickledWalrus Apr 30, 2024
2f6f093
Rework Test Environments
APickledWalrus Apr 30, 2024
16a8ecc
Update workflow names
APickledWalrus May 1, 2024
6fcfed9
minor corrections
APickledWalrus May 1, 2024
f5d37e2
Merge branch 'dev/patch' into patch/1.20.5-support
APickledWalrus May 1, 2024
168de06
Update aliases
APickledWalrus May 1, 2024
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
1 change: 0 additions & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[submodule "skript-aliases"]
path = skript-aliases
url = https://github.com/SkriptLang/skript-aliases
branch = patch/1.20.5-support
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ Skript has some tests written in Skript. Running them requires a Minecraft
server, but our build script will create one for you. Running the tests is easy:

```
./gradlew (quickTest|skriptTest|skriptTestJava8|skriptTestJava21)
./gradlew (quickTest|skriptTest|skriptTestJava8|skriptTestJava17|skriptTestJava21)
```

<code>quickTest</code> runs the test suite on newest supported server version.
<code>skriptTestJava21</code> (1.17+) runs the tests on the latest supported Java version.
<code>skriptTestJava8</code> (1.13-1.16) runs the tests on the oldest supported Java version.
<code>skriptTest</code> runs both skriptTestJava8 and skriptTestJava21
<code>skriptTestJava21</code> (1.20.6+) runs the tests on Java 21 supported versions.
<code>skriptTestJava17</code> (1.17-1.20.4) runs the tests on Java 17 supported versions.
<code>skriptTestJava8</code> (1.13-1.16) runs the tests on Java 8 supported versions.
<code>skriptTest</code> runs the tests on all versions.
That is, it runs skriptTestJava8, skriptTestJava17, and skriptTestJava21.

By running the tests, you agree to Mojang's End User License Agreement.

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ task build(overwrite: true, type: ShadowJar) {
from sourceSets.main.output
}

// Excludes the tests for the build task. Should be using junit, junitJava21, junitJava8, skriptTest, quickTest.
// Excludes the tests for the build task. Should be using junit, junitJava17, junitJava8, skriptTest, quickTest.
// We do not want tests to run for building. That's time consuming and annoying. Especially in development.
test {
exclude '**/*'
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ groupid=ch.njol
name=skript
version=2.8.4
jarName=Skript.jar
testEnv=java21/paper-1.20.4
testEnv=java21/paper-1.20.6
testEnvJavaVersion=21
2 changes: 1 addition & 1 deletion skript-aliases
Submodule skript-aliases updated 0 files
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/events/SimpleEvents.java
Original file line number Diff line number Diff line change
Expand Up @@ -426,14 +426,14 @@ public class SimpleEvents {
Skript.registerEvent("Entity Mount", SimpleEvent.class, mountEventClass, "mount[ing]")
.description("Called when entity starts riding another.")
.examples("on mount:",
"\tcancel event")
"\tcancel event")
.since("2.2-dev13b");
}
if (dismountEventClass != null) {
Skript.registerEvent("Entity Dismount", SimpleEvent.class, dismountEventClass, "dismount[ing]")
.description("Called when an entity dismounts.")
.examples("on dismount:",
"\tkill event-entity")
"\tkill event-entity")
.since("2.2-dev13b");
}
}
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/ch/njol/skript/util/PotionDataUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,6 @@ public enum PotionDataUtils {
WATER_BREATHING_LONG(PotionType.WATER_BREATHING, true, false, 9600, 0),
WEAKNESS(PotionType.WEAKNESS, false, false, 1800, 0),
WEAKNESS_LONG(PotionType.WEAKNESS, false, false, 4800, 0);



@Nullable
private String name;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
test "item crack particles" when running below minecraft "1.20.5":
test "item crack particles" when running below minecraft "1.20.5": # item crack does not exist on 1.20.5
set {_loc} to location of spawn of world "world"
play diamond sword item crack at {_loc}