mirror of
https://github.com/jpenilla/MiniMOTD.git
synced 2026-11-06 09:32:33 -05:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1445370dc7 | ||
|
|
8703ac088f | ||
|
|
6b63fa9056 | ||
|
|
82e6dbe652 | ||
|
|
a45edc8831 | ||
|
|
4d65294991 | ||
|
|
73f758b64e | ||
|
|
63eaa9b736 | ||
|
|
b4e4db5c03 | ||
|
|
51b24eb23a | ||
|
|
effbc28d63 | ||
|
|
e9b1bec8ad | ||
|
|
2e6ad4ef6b | ||
|
|
dc0a82dbd1 | ||
|
|
53e5310f20 | ||
|
|
3b826d9bd8 | ||
|
|
08e61cae76 | ||
|
|
f4b611470d | ||
|
|
e9f72077dd | ||
|
|
29893c6d4a | ||
|
|
a4faabdcf7 | ||
|
|
b0ffd89ac1 | ||
|
|
2c3a9e910a | ||
|
|
08be102527 | ||
|
|
6bfd5a8d4b | ||
|
|
6647d18939 | ||
|
|
91d680530e | ||
|
|
1623e05602 | ||
|
|
6527c8a4ea | ||
|
|
ccfa6d6668 | ||
|
|
78584b29e1 | ||
|
|
708fdb792f | ||
|
|
236be5c2c4 | ||
|
|
b1e7105fc1 | ||
|
|
f4d4936622 | ||
|
|
848868565d | ||
|
|
418292d982 | ||
|
|
439f944ef9 | ||
|
|
bd95a09c0a | ||
|
|
f90b3f17b1 |
No files matched your search
@@ -17,4 +17,4 @@ jobs:
|
||||
modrinth-publish: true
|
||||
hangar-publish: true
|
||||
loom: true
|
||||
jdk-version: 21
|
||||
jdk-version: 25
|
||||
@@ -4,8 +4,8 @@
|
||||
|
||||
### MiniMOTD is a basic server list MOTD plugin/mod for Minecraft servers and proxies
|
||||
|
||||
- MiniMOTD supports RGB colors and gradients through [MiniMessage](https://github.com/KyoriPowered/adventure-text-minimessage), which is also where MiniMOTD gets it's name.
|
||||
- For more detailed info on formatting text, refer to the [MiniMessage docs](https://docs.adventure.kyori.net/minimessage.html).
|
||||
- MiniMOTD supports RGB colors and gradients through [MiniMessage](https://docs.papermc.io/adventure/minimessage/), which is also where MiniMOTD gets its name.
|
||||
- For more detailed info on formatting text, refer to the [MiniMessage docs](https://docs.papermc.io/adventure/minimessage/format/).
|
||||
- RGB colors are automatically downsampled for outdated clients.
|
||||
- RGB colors are only able to be sent by proxies and 1.16+ servers, and can only be seen by 1.16+ clients.
|
||||
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
group=xyz.jpenilla
|
||||
version=2.2.2
|
||||
version=2.2.6-SNAPSHOT
|
||||
description=Use MiniMessage text formatting in the server list MOTD.
|
||||
|
||||
org.gradle.caching=true
|
||||
|
||||
@@ -48,6 +48,11 @@ val paperVersions = listOf(
|
||||
"1.21.9",
|
||||
"1.21.10",
|
||||
"1.21.11",
|
||||
"26.1",
|
||||
"26.1.1",
|
||||
"26.1.2",
|
||||
"26.2",
|
||||
"26.3",
|
||||
)
|
||||
|
||||
val productionJarAttribute = Attribute.of("minimotd.productionJar", String::class.java)
|
||||
@@ -12,7 +12,7 @@ version = (version as String)
|
||||
indra {
|
||||
javaVersions {
|
||||
target(17)
|
||||
minimumToolchain(21)
|
||||
minimumToolchain(25)
|
||||
testWith(17, 21, 25)
|
||||
}
|
||||
github(Constants.GITHUB_USER, Constants.GITHUB_REPO)
|
||||
|
||||
+15
-15
@@ -1,27 +1,27 @@
|
||||
[versions]
|
||||
run-task = "3.0.2"
|
||||
run-task = "3.1.0"
|
||||
resource-factory = "1.3.1"
|
||||
mod-publish-plugin = "1.0.0"
|
||||
mod-publish-plugin = "2.2.0"
|
||||
hangarPublishPlugin = "0.1.4"
|
||||
indra = "4.0.0"
|
||||
shadow = "9.2.2"
|
||||
adventure = "4.25.0"
|
||||
indra = "4.1.0"
|
||||
shadow = "9.6.1"
|
||||
adventure = "4.26.1"
|
||||
adventurePlatform = "4.4.1"
|
||||
adventurePlatformMod = "6.8.0"
|
||||
adventurePlatformMod = "7.2.0"
|
||||
configurate = "4.2.0"
|
||||
slf4j = "1.7.36"
|
||||
gson = "2.8.0"
|
||||
bstats = "3.1.0"
|
||||
bstats = "3.2.1"
|
||||
paperApiLegacy = "1.16.5-R0.1-SNAPSHOT"
|
||||
paperApi = "1.21.11-R0.1-SNAPSHOT"
|
||||
paperlib = "1.0.8"
|
||||
waterfallApi = "1.16-R0.5-SNAPSHOT"
|
||||
fabricApi = "0.139.5+1.21.11"
|
||||
fabricLoader = "0.18.2"
|
||||
minecraft = "1.21.11"
|
||||
spongeApi7 = "7.2.0"
|
||||
velocityApi = "3.4.0-SNAPSHOT"
|
||||
neoforge = "21.11.6-beta"
|
||||
fabricApi = "0.160.7+26.3"
|
||||
fabricLoader = "0.19.5"
|
||||
minecraft = "26.3"
|
||||
spongeApi7 = "7.4.0"
|
||||
velocityApi = "3.4.0"
|
||||
neoforge = "26.3.0.4-beta"
|
||||
|
||||
[plugins]
|
||||
blossom = { id = "net.kyori.blossom", version = "2.2.0" }
|
||||
@@ -44,7 +44,7 @@ adventurePlatformFabric = { group = "net.kyori", name = "adventure-platform-fabr
|
||||
adventurePlatformNeoforge = { group = "net.kyori", name = "adventure-platform-neoforge", version.ref = "adventurePlatformMod" }
|
||||
adventurePlatformSpongeApi = { group = "net.kyori", name = "adventure-platform-spongeapi", version.ref = "adventurePlatform" }
|
||||
minimessage = { group = "net.kyori", name = "adventure-text-minimessage" }
|
||||
miniplaceholders = "io.github.miniplaceholders:miniplaceholders-api:3.1.0"
|
||||
miniplaceholders = "io.github.miniplaceholders:miniplaceholders-api:3.2.0"
|
||||
|
||||
brigadier = "com.mojang:brigadier:1.3.10"
|
||||
|
||||
@@ -79,7 +79,7 @@ spongeApi7 = { group = "org.spongepowered", name = "spongeapi", version.ref = "s
|
||||
|
||||
velocityApi = { group = "com.velocitypowered", name = "velocity-api", version.ref = "velocityApi" }
|
||||
|
||||
junitJupiter = "org.junit.jupiter:junit-jupiter:6.0.1"
|
||||
junitJupiter = "org.junit.jupiter:junit-jupiter:6.1.3"
|
||||
|
||||
# build-logic
|
||||
indraCommon = { group = "net.kyori", name = "indra-common", version.ref = "indra" }
|
||||
|
||||
Vendored
BIN
Binary file not shown.
+3
-1
@@ -1,7 +1,9 @@
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-9.7.1-bin.zip
|
||||
networkTimeout=10000
|
||||
retries=0
|
||||
retryBackOffMs=500
|
||||
validateDistributionUrl=true
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
##############################################################################
|
||||
#
|
||||
# Gradle start up script for POSIX generated by Gradle.
|
||||
# gradlew start up script for POSIX generated by Gradle.
|
||||
#
|
||||
# Important for running:
|
||||
#
|
||||
@@ -29,7 +29,7 @@
|
||||
# bash, then to run this script, type that shell name before the whole
|
||||
# command line, like:
|
||||
#
|
||||
# ksh Gradle
|
||||
# ksh gradlew
|
||||
#
|
||||
# Busybox and similar reduced shells will NOT work, because this script
|
||||
# requires all of these POSIX shell features:
|
||||
@@ -57,7 +57,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/3d91ce3b8caaf77ad09f381f43615b715b53f72c/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/.
|
||||
|
||||
Vendored
+12
-23
@@ -19,12 +19,12 @@
|
||||
@if "%DEBUG%"=="" @echo off
|
||||
@rem ##########################################################################
|
||||
@rem
|
||||
@rem Gradle startup script for Windows
|
||||
@rem gradlew startup script for Windows
|
||||
@rem
|
||||
@rem ##########################################################################
|
||||
|
||||
@rem Set local scope for the variables with windows NT shell
|
||||
if "%OS%"=="Windows_NT" setlocal
|
||||
@rem Set local scope for the variables, and ensure extensions are enabled
|
||||
setlocal EnableExtensions
|
||||
|
||||
set DIRNAME=%~dp0
|
||||
if "%DIRNAME%"=="" set DIRNAME=.
|
||||
@@ -51,7 +51,7 @@ 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
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:findJavaFromJavaHome
|
||||
set JAVA_HOME=%JAVA_HOME:"=%
|
||||
@@ -65,29 +65,18 @@ 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
|
||||
"%COMSPEC%" /c exit 1
|
||||
|
||||
:execute
|
||||
@rem Setup the command line
|
||||
|
||||
|
||||
|
||||
@rem Execute Gradle
|
||||
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
||||
@rem Execute gradlew
|
||||
@rem endlocal doesn't take effect until after the line is parsed and variables are expanded
|
||||
@rem which allows us to clear the local environment before executing the java command
|
||||
endlocal & "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %* & call :exitWithErrorLevel
|
||||
|
||||
: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
|
||||
:exitWithErrorLevel
|
||||
@rem Use "%COMSPEC%" /c exit to allow operators to work properly in scripts
|
||||
"%COMSPEC%" /c exit %ERRORLEVEL%
|
||||
@@ -1,5 +1,7 @@
|
||||
import me.modmuss50.mpp.platforms.modrinth.ModrinthEnvironment
|
||||
|
||||
plugins {
|
||||
id("quiet-fabric-loom")
|
||||
id("xyz.jpenilla.quiet-fabric-loom")
|
||||
id("minimotd.platform-conventions")
|
||||
id("com.gradleup.shadow")
|
||||
}
|
||||
@@ -8,38 +10,35 @@ val shade: Configuration by configurations.creating
|
||||
|
||||
dependencies {
|
||||
minecraft(libs.minecraft)
|
||||
mappings(loom.officialMojangMappings())
|
||||
modImplementation(libs.fabricLoader)
|
||||
modImplementation(libs.fabricApi)
|
||||
implementation(libs.fabricLoader)
|
||||
implementation(libs.fabricApi)
|
||||
|
||||
shade(implementation(projects.minimotdCommon) {
|
||||
exclude("net.kyori")
|
||||
exclude("com.google.errorprone")
|
||||
})
|
||||
|
||||
modImplementation(libs.adventurePlatformFabric)
|
||||
implementation(libs.adventurePlatformFabric)
|
||||
include(libs.adventurePlatformFabric)
|
||||
}
|
||||
|
||||
miniMOTDPlatform {
|
||||
jarTask.set(tasks.remapJar)
|
||||
jarTask.set(tasks.shadowJar)
|
||||
}
|
||||
|
||||
indra {
|
||||
javaVersions {
|
||||
target(21)
|
||||
target(25)
|
||||
}
|
||||
}
|
||||
|
||||
tasks {
|
||||
shadowJar {
|
||||
archiveFileName.set("${project.name}-mc$minecraftVersion-${project.version}.jar")
|
||||
configurations = listOf(shade)
|
||||
commonConfiguration()
|
||||
commonRelocation("io.leangen.geantyref")
|
||||
}
|
||||
remapJar {
|
||||
archiveFileName.set("${project.name}-mc$minecraftVersion-${project.version}.jar")
|
||||
}
|
||||
processResources {
|
||||
val replacements = mapOf(
|
||||
"modid" to project.name,
|
||||
@@ -56,6 +55,7 @@ tasks {
|
||||
}
|
||||
|
||||
publishMods.modrinth {
|
||||
environment = ModrinthEnvironment.DEDICATED_SERVER_ONLY
|
||||
modLoaders.add("fabric")
|
||||
minecraftVersions.addAll(minecraftVersion)
|
||||
optional("miniplaceholders")
|
||||
|
||||
@@ -23,9 +23,9 @@
|
||||
"minimotd-fabric.mixins.json"
|
||||
],
|
||||
"depends": {
|
||||
"fabricloader": ">=0.18.2",
|
||||
"fabricloader": ">=0.19.5",
|
||||
"fabric-api": "*",
|
||||
"minecraft": ">=1.21.11",
|
||||
"minecraft": ">=26.3",
|
||||
"adventure-platform-fabric": "*"
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,5 @@
|
||||
import me.modmuss50.mpp.platforms.modrinth.ModrinthEnvironment
|
||||
|
||||
plugins {
|
||||
id("net.neoforged.moddev")
|
||||
id("minimotd.platform-conventions")
|
||||
@@ -24,7 +26,7 @@ dependencies {
|
||||
|
||||
indra {
|
||||
javaVersions {
|
||||
target(21)
|
||||
target(25)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,6 +61,7 @@ miniMOTDPlatform {
|
||||
}
|
||||
|
||||
publishMods.modrinth {
|
||||
environment = ModrinthEnvironment.DEDICATED_SERVER_ONLY
|
||||
modLoaders.add("neoforge")
|
||||
minecraftVersions.addAll(minecraftVersion)
|
||||
optional("miniplaceholders")
|
||||
|
||||
@@ -23,7 +23,7 @@ side = "BOTH"
|
||||
[[dependencies.minimotd]]
|
||||
modId = "minecraft"
|
||||
type = "required"
|
||||
versionRange = "[1.21.11,)"
|
||||
versionRange = "[26.3,)"
|
||||
ordering = "NONE"
|
||||
side = "BOTH"
|
||||
|
||||
|
||||
@@ -65,6 +65,9 @@ publishMods.modrinth {
|
||||
"1.21.8",
|
||||
"1.21.10",
|
||||
"1.21.11",
|
||||
"26.1.2",
|
||||
"26.2",
|
||||
"26.3",
|
||||
)
|
||||
optional("miniplaceholders")
|
||||
}
|
||||
+2
-2
@@ -4,7 +4,7 @@
|
||||
"config:recommended"
|
||||
],
|
||||
"ignoreDeps": [
|
||||
"quiet-fabric-loom",
|
||||
"xyz.jpenilla.quiet-fabric-loom",
|
||||
"com.mojang:minecraft",
|
||||
"com.google.code.gson:gson"
|
||||
],
|
||||
@@ -25,7 +25,7 @@
|
||||
"matchPackageNames": [
|
||||
"net.neoforged:neoforge"
|
||||
],
|
||||
"versioning": "regex:^(?<compatibility>(\\d+\\.){2})(?<minor>\\d+)(-beta)?$"
|
||||
"versioning": "regex:^(?<compatibility>(?:\\d+\\.){3})(?<minor>\\d+)(?:-beta)?$"
|
||||
},
|
||||
{
|
||||
"matchManagers": [
|
||||
|
||||
+2
-2
@@ -13,8 +13,8 @@ pluginManagement {
|
||||
}
|
||||
|
||||
plugins {
|
||||
id("net.neoforged.moddev.repositories") version "2.0.124" apply false
|
||||
id("quiet-fabric-loom") version "1.13-SNAPSHOT" apply false
|
||||
id("net.neoforged.moddev.repositories") version "2.0.147" apply false
|
||||
id("xyz.jpenilla.quiet-fabric-loom") version "1.18-SNAPSHOT" apply false
|
||||
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user