Tags
Creators
Details
2.4.0+velocity
Compatibility
Changes
Added
The Discord embed layout is now yours to write (discord.embed). The message used to be fixed at a title and six inline boxes. Every visible part is a template string instead:
discord:
embed:
title: "`{player}`"
description: |
```ansi
IP: `{ip}`
Country: {country}
Action: {action}
```
thumbnail: "https://your-server.example/alert.gif"
footer: "ProxyShield {version} on {platform}"
fields: {}
Placeholders: {player} {uuid} {ip} {reason} {country} {isp} {asn} {score} {sources} {platform} {version}, plus {action} (Connection denied / Logged only (dry run)) and {action_id} (kicked / allowed).
Fields are named entries rather than a list, the same way api.providers works, and appear in the order written. Clear them with fields: {} for a description-only message.
Values go in exactly as written, so the backticks are yours to place. Discord parses embed text as Markdown and an underscore is a legal Minecraft name character, so the shipped layout wraps everything that can contain one.
Nothing changes for an existing server. A config without an embed section renders the previous layout, and the section now shipped in config.yml is that same layout spelled out, which a test pins.
The thumbnail must be https://, the same rule the webhook URL is held to.
Also added: {action_id} in actions.on-flag, so one name means one thing in both the commands and the embed.
Projects on Modrinth are automatically available through a Maven repository for use with JVM build tools such as Gradle. To learn more about the Modrinth Maven API, click here.
Note: When available, you should use the creator's maven repo instead as it will have transitive dependency information that the Modrinth Maven API does not. You may also end up with duplicate dependencies if you use a mix of Modrinth and non-Modrinth Maven repositories for your dependencies, because the group identifier will be different when served through the Modrinth Maven API.
Maven coordinates:
Version ID:
build.gradle:
repositories {
exclusiveContent {
forRepository {
maven {
name = "Modrinth"
url = "https://api.modrinth.com/maven"
}
}
// forRepositories(fg.repository) // Uncomment when using ForgeGradle
filter {
includeGroup "maven.modrinth"
}
}
}
// Standard Gradle dependency
dependencies {
implementation "maven.modrinth:nqiuEiMp:CUNEQLrJ"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:nqiuEiMp:CUNEQLrJ"
}

