Last active
June 25, 2025 20:18
-
-
Save egnappahz/350b206636143803968e7efdb5d66c60 to your computer and use it in GitHub Desktop.
patch BMMarker to minecraft paper version 1.21.6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/bmm-paper/build.gradle.kts b/bmm-paper/build.gradle.kts | |
index ca952fe..bdd0826 100644 | |
--- a/bmm-paper/build.gradle.kts | |
+++ b/bmm-paper/build.gradle.kts | |
@@ -2,10 +2,12 @@ plugins { | |
`core-script` | |
`paper-script` | |
`shadow-script` | |
+ id("io.papermc.paperweight.userdev") | |
} | |
dependencies { | |
implementation(project(":bmm-core")) | |
+ paperweight.paperDevBundle("1.21.6-R0.1-SNAPSHOT") | |
} | |
tasks { | |
@@ -18,4 +20,4 @@ sourceSets { | |
main { | |
resources.srcDirs("$rootDir/data/") | |
} | |
-} | |
\ No newline at end of file | |
+} | |
diff --git a/bmm-paper/src/main/java/bmm/BMMPluginLoader.java b/bmm-paper/src/main/java/bmm/BMMPluginLoader.java | |
index c174414..44d6d34 100644 | |
--- a/bmm-paper/src/main/java/bmm/BMMPluginLoader.java | |
+++ b/bmm-paper/src/main/java/bmm/BMMPluginLoader.java | |
@@ -16,7 +16,6 @@ public class BMMPluginLoader implements PluginLoader { | |
@Override | |
public void classloader(@NotNull PluginClasspathBuilder classpathBuilder) { | |
- | |
MavenLibraryResolver resolver = new MavenLibraryResolver(); | |
resolver.addRepository(MAVEN_CENTRAL); | |
resolver.addRepository(MAVEN_SNAPSHOT); | |
@@ -26,11 +25,11 @@ public class BMMPluginLoader implements PluginLoader { | |
"org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4", | |
"org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4", | |
"org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1", | |
- "dev.jorel:commandapi-bukkit-shade-mojang-mapped:9.5.0-SNAPSHOT" | |
+ "dev.jorel:commandapi-bukkit-shade-mojang-mapped:10.1.0" | |
) | |
.map(artifact -> new Dependency(new DefaultArtifact(artifact), null)) | |
.forEach(resolver::addDependency); | |
classpathBuilder.addLibrary(resolver); | |
} | |
-} | |
\ No newline at end of file | |
+} | |
diff --git a/buildSrc/build.gradle.kts b/buildSrc/build.gradle.kts | |
index 849f187..bf47900 100644 | |
--- a/buildSrc/build.gradle.kts | |
+++ b/buildSrc/build.gradle.kts | |
@@ -26,7 +26,7 @@ dependencies { | |
implementation("net.fabricmc:fabric-loom:1.10-SNAPSHOT") | |
// Paper implementation | |
- implementation(pluginDep("io.papermc.paperweight.userdev", "2.0.0-beta.16")) | |
+ implementation(pluginDep("io.papermc.paperweight.userdev", "2.0.0-beta.17")) | |
implementation(pluginDep("xyz.jpenilla.run-paper", "2.2.4")) | |
implementation(pluginDep("net.minecrell.plugin-yml.bukkit", "0.6.+")) | |
diff --git a/buildSrc/src/main/kotlin/paper-script.gradle.kts b/buildSrc/src/main/kotlin/paper-script.gradle.kts | |
index 546cdab..57aef77 100644 | |
--- a/buildSrc/src/main/kotlin/paper-script.gradle.kts | |
+++ b/buildSrc/src/main/kotlin/paper-script.gradle.kts | |
@@ -34,8 +34,8 @@ dependencies { | |
// Utility libraries (optional) | |
val useBrigadier = properties["useBrigadier"] as String == "true" | |
if (useBrigadier) { | |
- implementation("dev.jorel:commandapi-bukkit-shade:10.0.1") | |
- implementation("dev.jorel:commandapi-bukkit-kotlin:10.0.1") | |
+ implementation("dev.jorel:commandapi-bukkit-shade:10.1.0") | |
+ implementation("dev.jorel:commandapi-bukkit-kotlin:10.1.0") | |
} | |
// MC Libraries | |
diff --git a/gradle.properties b/gradle.properties | |
index 5d8ccd4..175cd8a 100644 | |
--- a/gradle.properties | |
+++ b/gradle.properties | |
@@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx1G | |
# Global Project Settings - set name in settings.gradle.kts | |
-version=2.1.9 | |
+version=2.1.11 | |
group=de.miraculixx | |
projectName=BMMarker | |
description=Add a marker command to easily setup your markers & marker sets ingame without touching any configs | |
@@ -14,7 +14,7 @@ modrinthProjectId=bmarker | |
# Minecraft Settings | |
-gameVersion=1.21.5 | |
+gameVersion=1.21.6 | |
publishState=release | |
diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar | |
index d64cd49..1b33c55 100644 | |
Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ | |
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties | |
index 37f853b..ca025c8 100644 | |
--- a/gradle/wrapper/gradle-wrapper.properties | |
+++ b/gradle/wrapper/gradle-wrapper.properties | |
@@ -1,6 +1,6 @@ | |
distributionBase=GRADLE_USER_HOME | |
distributionPath=wrapper/dists | |
-distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip | |
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip | |
networkTimeout=10000 | |
validateDistributionUrl=true | |
zipStoreBase=GRADLE_USER_HOME | |
diff --git a/gradlew b/gradlew | |
old mode 100644 | |
new mode 100755 | |
index 1aa94a4..23d15a9 | |
--- a/gradlew | |
+++ b/gradlew | |
@@ -15,6 +15,8 @@ | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# | |
+# SPDX-License-Identifier: Apache-2.0 | |
+# | |
############################################################################## | |
# | |
@@ -55,7 +57,7 @@ | |
# Darwin, MinGW, and NonStop. | |
# | |
# (3) This script is generated from the Groovy template | |
-# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt | |
+# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt | |
# within the Gradle project. | |
# | |
# You can find Gradle at https://github.com/gradle/gradle/. | |
@@ -84,7 +86,7 @@ done | |
# shellcheck disable=SC2034 | |
APP_BASE_NAME=${0##*/} | |
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) | |
-APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit | |
+APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit | |
# Use the maximum available, or set MAX_FD != -1 to use that value. | |
MAX_FD=maximum | |
@@ -112,7 +114,7 @@ case "$( uname )" in #( | |
NONSTOP* ) nonstop=true ;; | |
esac | |
-CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar | |
+CLASSPATH="\\\"\\\"" | |
# Determine the Java command to use to start the JVM. | |
@@ -203,7 +205,7 @@ fi | |
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | |
# Collect all arguments for the java command: | |
-# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, | |
+# * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, | |
# and any embedded shellness will be escaped. | |
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be | |
# treated as '${Hostname}' itself on the command line. | |
@@ -211,7 +213,7 @@ DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' | |
set -- \ | |
"-Dorg.gradle.appname=$APP_BASE_NAME" \ | |
-classpath "$CLASSPATH" \ | |
- org.gradle.wrapper.GradleWrapperMain \ | |
+ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \ | |
"$@" | |
# Stop when "xargs" is not available. | |
diff --git a/gradlew.bat b/gradlew.bat | |
index 25da30d..5eed7ee 100644 | |
--- a/gradlew.bat | |
+++ b/gradlew.bat | |
@@ -1,92 +1,94 @@ | |
-@rem | |
-@rem Copyright 2015 the original author or authors. | |
-@rem | |
-@rem Licensed under the Apache License, Version 2.0 (the "License"); | |
-@rem you may not use this file except in compliance with the License. | |
-@rem You may obtain a copy of the License at | |
-@rem | |
-@rem https://www.apache.org/licenses/LICENSE-2.0 | |
-@rem | |
-@rem Unless required by applicable law or agreed to in writing, software | |
-@rem distributed under the License is distributed on an "AS IS" BASIS, | |
-@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
-@rem See the License for the specific language governing permissions and | |
-@rem limitations under the License. | |
-@rem | |
- | |
-@if "%DEBUG%"=="" @echo off | |
-@rem ########################################################################## | |
-@rem | |
-@rem Gradle startup script for Windows | |
-@rem | |
-@rem ########################################################################## | |
- | |
-@rem Set local scope for the variables with windows NT shell | |
-if "%OS%"=="Windows_NT" setlocal | |
- | |
-set DIRNAME=%~dp0 | |
-if "%DIRNAME%"=="" set DIRNAME=. | |
-@rem This is normally unused | |
-set APP_BASE_NAME=%~n0 | |
-set APP_HOME=%DIRNAME% | |
- | |
-@rem Resolve any "." and ".." in APP_HOME to make it shorter. | |
-for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi | |
- | |
-@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | |
-set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" | |
- | |
-@rem Find java.exe | |
-if defined JAVA_HOME goto findJavaFromJavaHome | |
- | |
-set JAVA_EXE=java.exe | |
-%JAVA_EXE% -version >NUL 2>&1 | |
-if %ERRORLEVEL% equ 0 goto execute | |
- | |
-echo. 1>&2 | |
-echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 | |
-echo. 1>&2 | |
-echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | |
-echo location of your Java installation. 1>&2 | |
- | |
-goto fail | |
- | |
-:findJavaFromJavaHome | |
-set JAVA_HOME=%JAVA_HOME:"=% | |
-set JAVA_EXE=%JAVA_HOME%/bin/java.exe | |
- | |
-if exist "%JAVA_EXE%" goto execute | |
- | |
-echo. 1>&2 | |
-echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 | |
-echo. 1>&2 | |
-echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | |
-echo location of your Java installation. 1>&2 | |
- | |
-goto fail | |
- | |
-:execute | |
-@rem Setup the command line | |
- | |
-set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar | |
- | |
- | |
-@rem Execute Gradle | |
-"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* | |
- | |
-:end | |
-@rem End local scope for the variables with windows NT shell | |
-if %ERRORLEVEL% equ 0 goto mainEnd | |
- | |
-:fail | |
-rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | |
-rem the _cmd.exe /c_ return code! | |
-set EXIT_CODE=%ERRORLEVEL% | |
-if %EXIT_CODE% equ 0 set EXIT_CODE=1 | |
-if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% | |
-exit /b %EXIT_CODE% | |
- | |
-:mainEnd | |
-if "%OS%"=="Windows_NT" endlocal | |
- | |
-:omega | |
+@rem | |
+@rem Copyright 2015 the original author or authors. | |
+@rem | |
+@rem Licensed under the Apache License, Version 2.0 (the "License"); | |
+@rem you may not use this file except in compliance with the License. | |
+@rem You may obtain a copy of the License at | |
+@rem | |
+@rem https://www.apache.org/licenses/LICENSE-2.0 | |
+@rem | |
+@rem Unless required by applicable law or agreed to in writing, software | |
+@rem distributed under the License is distributed on an "AS IS" BASIS, | |
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
+@rem See the License for the specific language governing permissions and | |
+@rem limitations under the License. | |
+@rem | |
+@rem SPDX-License-Identifier: Apache-2.0 | |
+@rem | |
+ | |
+@if "%DEBUG%"=="" @echo off | |
+@rem ########################################################################## | |
+@rem | |
+@rem Gradle startup script for Windows | |
+@rem | |
+@rem ########################################################################## | |
+ | |
+@rem Set local scope for the variables with windows NT shell | |
+if "%OS%"=="Windows_NT" setlocal | |
+ | |
+set DIRNAME=%~dp0 | |
+if "%DIRNAME%"=="" set DIRNAME=. | |
+@rem This is normally unused | |
+set APP_BASE_NAME=%~n0 | |
+set APP_HOME=%DIRNAME% | |
+ | |
+@rem Resolve any "." and ".." in APP_HOME to make it shorter. | |
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi | |
+ | |
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. | |
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" | |
+ | |
+@rem Find java.exe | |
+if defined JAVA_HOME goto findJavaFromJavaHome | |
+ | |
+set JAVA_EXE=java.exe | |
+%JAVA_EXE% -version >NUL 2>&1 | |
+if %ERRORLEVEL% equ 0 goto execute | |
+ | |
+echo. 1>&2 | |
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 | |
+echo. 1>&2 | |
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | |
+echo location of your Java installation. 1>&2 | |
+ | |
+goto fail | |
+ | |
+:findJavaFromJavaHome | |
+set JAVA_HOME=%JAVA_HOME:"=% | |
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe | |
+ | |
+if exist "%JAVA_EXE%" goto execute | |
+ | |
+echo. 1>&2 | |
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 | |
+echo. 1>&2 | |
+echo Please set the JAVA_HOME variable in your environment to match the 1>&2 | |
+echo location of your Java installation. 1>&2 | |
+ | |
+goto fail | |
+ | |
+:execute | |
+@rem Setup the command line | |
+ | |
+set CLASSPATH= | |
+ | |
+ | |
+@rem Execute Gradle | |
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* | |
+ | |
+:end | |
+@rem End local scope for the variables with windows NT shell | |
+if %ERRORLEVEL% equ 0 goto mainEnd | |
+ | |
+:fail | |
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of | |
+rem the _cmd.exe /c_ return code! | |
+set EXIT_CODE=%ERRORLEVEL% | |
+if %EXIT_CODE% equ 0 set EXIT_CODE=1 | |
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% | |
+exit /b %EXIT_CODE% | |
+ | |
+:mainEnd | |
+if "%OS%"=="Windows_NT" endlocal | |
+ | |
+:omega | |
diff --git a/settings.gradle.kts b/settings.gradle.kts | |
index 1261daa..94f702a 100644 | |
--- a/settings.gradle.kts | |
+++ b/settings.gradle.kts | |
@@ -6,8 +6,11 @@ pluginManagement { | |
gradlePluginPortal() | |
maven("https://repo.papermc.io/repository/maven-public/") | |
} | |
+ plugins { | |
+ id("io.papermc.paperweight.userdev") version "2.0.0-beta.17" | |
+ } | |
} | |
include("bmm-paper") | |
include("bmm-core") | |
-include("bmm-fabric") | |
+//include("bmm-fabric") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment