Tags
Creators
Details
2.0.2v
Compatibility
Changes
Actualización: HTTP API para consultas seguras (v2.0.2)
Esta actualización añade un servidor HTTP embebido para consultar de forma segura las relaciones entre cuentas de Minecraft (UUID) y Discord (ID). El acceso se protege con un token seguro (api.token) generado automáticamente si el archivo de configuración no lo contiene. El puerto del API es configurable.
Resumen rápido
- Base URL:
http://<IP>:<PUERTO>/api/ - Puerto por defecto:
8080(configurable enbot-config.propertiesconapi.port) - Token seguro:
api.token(hex generado automáticamente si está vacío) - Parámetro de autorización:
token(query param) - Endpoints:
GET /api/getDiscordIdByMinecraft?uuid=<UUID>&token=<API_TOKEN>- `GET /api/getMinecraftUUIDByDiscordId?discordId=<DISCORD_ID>&token=<API_TOKEN>
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:w3QnTIrv:MSv6veJG"
}
// Legacy Loom dependency
dependencies {
modImplementation "maven.modrinth:w3QnTIrv:MSv6veJG"
}

