add-platform

Installation
SKILL.md

Add Platform

Critical

  • All shaded deps (okhttp3, gson, configurate, snakeyaml) must be declared as compile-scope dependencies in the new module's pom.xml — they are relocated by the parent shade config. Never mark them provided.
  • The maven-shade-plugin execution must be present in every platform module's <build> — it is NOT inherited automatically.
  • webhookSender.shutdown() must be called in the disable/shutdown lifecycle or the OkHttp dispatcher thread will leak.
  • Events.get().unregister(liteBansListener) must be called before shutdown() in the disable lifecycle.
  • Add the new module to <modules> in the root pom.xml before building.

Instructions

  1. Determine the platform slug (lowercase, e.g. sponge). All paths below use <slug> as a placeholder.
    • Java package: dev.colocated.litebansdiscordbridge.<slug>
    • Artifact ID: litebansdiscordbridge-<slug>
    • Final JAR name: LiteBansDiscordBridge-<slug>-${project.version}${jar.suffix}
    • Class prefix: e.g. Sponge → SpongePlatformAdapter, LiteBansDiscordBridgeSponge, SpongeCommand
Installs
1
First Seen
Jun 12, 2026