diff --git a/.github/ISSUE_TEMPLATE/bug-report.yml b/.github/ISSUE_TEMPLATE/bug-report.yml index 08a6df7b665..677d0ce8a8b 100644 --- a/.github/ISSUE_TEMPLATE/bug-report.yml +++ b/.github/ISSUE_TEMPLATE/bug-report.yml @@ -7,6 +7,8 @@ body: ## Guidelines Please make sure you are running the latest version of Skript on a supported server platform and version. Try to make sure there are no issues of this same problem currently open either. + As of the release of Skript 2.10, the oldest supported version has been raised to 1.19.4. + Any issues created for versions older than 1.19.4 will not be looked into or fixed unless the issue persists on supported versions. - type: textarea attributes: label: Skript/Server Version diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5b930003730..16900d59a6f 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,5 +1,12 @@ version: 2 updates: + - package-ecosystem: "gitsubmodule" + target-branch: "dev/patch" + directory: "/" + schedule: + interval: "weekly" + labels: + - "dependencies" - package-ecosystem: "github-actions" target-branch: "dev/patch" directory: "/" diff --git a/build.gradle b/build.gradle index 6052dc530da..9d647455a6b 100644 --- a/build.gradle +++ b/build.gradle @@ -30,11 +30,19 @@ 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.4-R0.1-SNAPSHOT' 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' + + // bundled with Minecraft 1.19.4+ for display entity transforms + implementation group: 'org.joml', name: 'joml', version: '1.10.5' + + // Plugin hook libraries + implementation group: 'com.sk89q.worldguard', name: 'worldguard-legacy', version: '7.0.0-SNAPSHOT', { + exclude group: 'org.bukkit', module: 'bukkit' + } implementation group: 'net.milkbowl.vault', name: 'Vault', version: '1.7.3', { exclude group: 'org.bstats', module: 'bstats-bukkit' + exclude group: 'org.bukkit', module: 'bukkit' } implementation fileTree(dir: 'lib', include: '*.jar') @@ -239,7 +247,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.4.json' def latestJava = java21 def oldestJava = java17 diff --git a/gradle.properties b/gradle.properties index 8fa041e0878..5e27c501c58 100644 --- a/gradle.properties +++ b/gradle.properties @@ -5,7 +5,7 @@ org.gradle.parallel=true groupid=ch.njol name=skript -version=2.9.3 +version=2.10.0-pre1 jarName=Skript.jar -testEnv=java21/paper-1.21.0 +testEnv=java21/paper-1.21.4 testEnvJavaVersion=21 diff --git a/skript-aliases b/skript-aliases index 16949c28e0d..809c9e1ad95 160000 --- a/skript-aliases +++ b/skript-aliases @@ -1 +1 @@ -Subproject commit 16949c28e0d7bb25ea7c3479c3d6754ff3b5a3e6 +Subproject commit 809c9e1ad95f26f9d62327f8447301a9e7db5379 diff --git a/src/main/java/ch/njol/skript/PatcherTool.java b/src/main/java/ch/njol/skript/PatcherTool.java index 6b2355fdaf9..66062ae1769 100644 --- a/src/main/java/ch/njol/skript/PatcherTool.java +++ b/src/main/java/ch/njol/skript/PatcherTool.java @@ -1,21 +1,3 @@ -/** - * This file is part of Skript. - * - * Skript is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Skript is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Skript. If not, see . - * - * Copyright Peter Güttinger, SkriptLang team and contributors - */ package ch.njol.skript; import java.io.IOException; diff --git a/src/main/java/ch/njol/skript/ScriptLoader.java b/src/main/java/ch/njol/skript/ScriptLoader.java index 95148d24b20..295945a064d 100644 --- a/src/main/java/ch/njol/skript/ScriptLoader.java +++ b/src/main/java/ch/njol/skript/ScriptLoader.java @@ -1,21 +1,3 @@ -/** - * This file is part of Skript. - * - * Skript is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * Skript is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with Skript. If not, see . - * - * Copyright Peter Güttinger, SkriptLang team and contributors - */ package ch.njol.skript; import ch.njol.skript.config.Config; @@ -28,13 +10,12 @@ import ch.njol.skript.lang.Statement; import ch.njol.skript.lang.TriggerItem; import ch.njol.skript.lang.TriggerSection; +import ch.njol.skript.lang.function.EffFunctionCall; import ch.njol.skript.lang.parser.ParserInstance; -import ch.njol.skript.log.CountingLogHandler; -import ch.njol.skript.log.LogEntry; -import ch.njol.skript.log.RetainingLogHandler; -import ch.njol.skript.log.SkriptLogger; +import ch.njol.skript.log.*; import ch.njol.skript.sections.SecLoop; import ch.njol.skript.structures.StructOptions.OptionsData; +import ch.njol.skript.test.runner.TestMode; import ch.njol.skript.util.ExceptionUtils; import ch.njol.skript.util.SkriptColor; import ch.njol.skript.util.Task; @@ -46,9 +27,12 @@ import ch.njol.util.StringUtils; import org.bukkit.Bukkit; import org.bukkit.event.Event; +import org.jetbrains.annotations.ApiStatus; import org.jetbrains.annotations.Nullable; import org.skriptlang.skript.lang.script.Script; +import org.skriptlang.skript.lang.script.ScriptWarning; import org.skriptlang.skript.lang.structure.Structure; +import org.skriptlang.skript.util.event.EventRegistry; import java.io.File; import java.io.FileFilter; @@ -56,16 +40,7 @@ import java.io.InputStream; import java.nio.file.Files; import java.nio.file.Path; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Collections; -import java.util.Comparator; -import java.util.HashMap; -import java.util.HashSet; -import java.util.List; -import java.util.Map; -import java.util.Set; -import java.util.TreeSet; +import java.util.*; import java.util.concurrent.BlockingQueue; import java.util.concurrent.Callable; import java.util.concurrent.CompletableFuture; @@ -82,7 +57,7 @@ public class ScriptLoader { public static final String DISABLED_SCRIPT_PREFIX = "-"; public static final int DISABLED_SCRIPT_PREFIX_LENGTH = DISABLED_SCRIPT_PREFIX.length(); - + /** * A class for keeping track of the general content of a script: *