diff --git a/plugin/build.gradle.kts b/plugin/build.gradle.kts index f9266be..0805eef 100644 --- a/plugin/build.gradle.kts +++ b/plugin/build.gradle.kts @@ -9,7 +9,7 @@ plugins { } group = "xyz.jpenilla" -version = "2.3.2-SNAPSHOT" +version = "2.4.0-SNAPSHOT" description = "Gradle plugins adding run tasks for Minecraft server and proxy software" repositories { diff --git a/plugin/src/main/kotlin/xyz/jpenilla/runpaper/task/RunServer.kt b/plugin/src/main/kotlin/xyz/jpenilla/runpaper/task/RunServer.kt index 425ed0a..a4e8a65 100644 --- a/plugin/src/main/kotlin/xyz/jpenilla/runpaper/task/RunServer.kt +++ b/plugin/src/main/kotlin/xyz/jpenilla/runpaper/task/RunServer.kt @@ -100,6 +100,16 @@ public abstract class RunServer : RunWithPlugins() { return version.get().minecraftVersionIsSameOrNewerThan(1, 16, 5) } + /** + * Sets the Paper system property to ignore unsupported JVM runtimes. + * Can allow running older Paper builds on newer JVMs. + * + * This may have mixed results based on plugins, Paper version, and more. + */ + public fun ignoreUnsupportedJvm() { + systemProperty("Paper.IgnoreJavaVersion", true) + } + /** * Sets the Minecraft version to use. *