Skip to content

Commit

Permalink
Add RunServer#ignoreUnsupportedJvm
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Jan 10, 2025
1 parent 2ccdaed commit f1d186d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 10 additions & 0 deletions plugin/src/main/kotlin/xyz/jpenilla/runpaper/task/RunServer.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit f1d186d

Please sign in to comment.