Getting Started
MiniPlaceholders is a plugin and mod that allows you to register global placeholders based on Adventure Components to be used in other plugin/mods instances.
Requires Paper 1.21 and higher, Velocity 3.3.0 and higher, Fabric 1.21.1+ or Sponge API 8+.
To continue, you first need knowledge of MiniMessage. To see how to use the MiniMessage API in MiniPlaceholders, check this section.
To use MiniPlaceholders API, you need Java 21 at least
Remember not to shade or relocate MiniMessage, as the platforms on which MiniPlaceholders run already have MiniMessage built in. MiniPlaceholders is only compatible with projects using native API, if you use Adventure Platform Bukkit either relocated or integrated, MiniPlaceholders will not be able to work properly
If you want a template to create your next expansion, you can use our template https://github.com/MiniPlaceholders/Template-Expansion
This guide is updated for MiniPlaceholders v3. If you need a guide for MiniPlaceholders v2, you can view the change history on this wiki
API Module
- Gradle
- Maven
repositories {
mavenCentral()
}
dependencies {
compileOnly("io.github.miniplaceholders:miniplaceholders-api:3.0.1")
}
<dependency>
<groupId>io.github.miniplaceholders</groupId>
<artifactId>miniplaceholders-api</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>
Kotlin Extra
Kotlin Extra is an API submodule that makes it easy to develop Expansions in Kotlin environments.
It can only be used in environments that provide kotlin-stdlib, such as Fabric with Fabric Language Kotlin, or with plugins that provide it, such as MCKotlin
- Gradle
- Maven
repositories {
mavenCentral()
}
dependencies {
compileOnly("io.github.miniplaceholders:miniplaceholders-kotlin-ext:3.0.1")
}
<dependency>
<groupId>io.github.miniplaceholders</groupId>
<artifactId>miniplaceholders-kotlin-ext</artifactId>
<version>3.0.1</version>
<scope>provided</scope>
</dependency>