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

Adds 1.21.3 test support #7135

Closed
Closed
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
shadow group: 'org.bstats', name: 'bstats-bukkit', version: '3.0.2'
shadow group: 'net.kyori', name: 'adventure-text-serializer-bungeecord', version: '4.3.2'

implementation group: 'io.papermc.paper', name: 'paper-api', version: '1.21-R0.1-SNAPSHOT'
implementation group: 'io.papermc.paper', name: 'paper-api', version: '1.21.1-R0.1-SNAPSHOT'
EquipableMC marked this conversation as resolved.
Show resolved Hide resolved
implementation group: 'com.google.code.findbugs', name: 'findbugs', version: '3.0.1'
implementation group: 'com.sk89q.worldguard', name: 'worldguard-legacy', version: '7.0.0-SNAPSHOT'
implementation group: 'net.milkbowl.vault', name: 'Vault', version: '1.7.3', {
Expand Down Expand Up @@ -239,7 +239,7 @@ void createTestTask(String name, String desc, String environments, int javaVersi
def java21 = 21
def java17 = 17

def latestEnv = 'java21/paper-1.21.0.json'
def latestEnv = 'java21/paper-1.21.1.json'
def latestJava = java21
def oldestJava = java17

Expand Down
17 changes: 17 additions & 0 deletions src/test/skript/environments/java21/paper-1.21.1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "paper-1.21.1",
"resources": [
{"source": "server.properties.generic", "target": "server.properties"}
],
"paperDownloads": [
{
"version": "1.21.1",
"target": "paperclip.jar"
}
],
"skriptTarget": "plugins/Skript.jar",
"commandLine": [
"-Dcom.mojang.eula.agree=true",
"-jar", "paperclip.jar", "--nogui"
]
}
8 changes: 4 additions & 4 deletions src/test/skript/tests/syntaxes/effects/EffHealth.sk
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ test "health effect":
assert health of {_m} is 5 with "default cow health failed"
damage {_m} by 0.5
assert health of {_m} is 4.5 with "damage cow failed"
damage {_m} by 99
assert health of {_m} is 0 with "damage cow failed"
damage {_m} by 3
assert health of {_m} is 2.5 with "damage cow failed"
heal {_m} by 1
assert health of {_m} is 1 with "heal cow failed"
assert health of {_m} is 3.5 with "heal cow failed"
heal {_m} by 0.5
assert health of {_m} is 1.5 with "heal cow failed"
assert health of {_m} is 4 with "heal cow failed"
heal {_m} by 99
assert health of {_m} is 5 with "heal cow failed"
clear all entities
Loading