Skip to content

SLF4J implementations for Mindustry.

License

Notifications You must be signed in to change notification settings

xpdustry/slf4md

This branch is 1 commit ahead of master.

Folders and files

NameName
Last commit message
Last commit date
Sep 25, 2024
Feb 25, 2025
Jan 18, 2025
Dec 3, 2024
Sep 30, 2024
Jan 18, 2025
Jun 11, 2024
Sep 25, 2024
Jan 18, 2025
Feb 25, 2025
Sep 23, 2024
Jun 11, 2024
Jun 10, 2024
Jun 11, 2024

Repository files navigation

slf4md

Build status Mindustry 7.0

Description

A set of plugins providing various SLF4J implementations for Mindustry.

Installation

The plugins require:

  • Java 17 or above.

  • Mindustry v146 or above.

Usage

For server owners

If one of your plugins requires slf4md, you don't have to do anything special. Simply choose the implementation that suits your needs and install it on your server (in the config/mods directory):

  • slf4md-simple: A logger that redirects to arc logger (arc.util.Log). No fancy stuff or invasive changes.

For plugin developers

You only need to "compileOnly" slf4j-api in your build.gradle:

repositories {
    mavenCentral()
}

dependencies {
    compileOnly("org.slf4j:slf4j-api:$VERSION")
}

and add slf4md in the dependencies of your plugin.json:

{
  "dependencies": ["slf4md"]
}

Building

  • ./gradlew :slf4md-{module}:shadowJar to compile the plugin into a usable jar (will be located at builds/libs/(plugin-name).jar).

  • ./gradlew :slf4md-{module}:runMindustryServer to run the plugin in a local Mindustry server.

  • ./gradlew :slf4md-{module}:runMindustryDesktop to start a local Mindustry client that will let you test the plugin.