PistonMOTD API

PistonMOTD has a great API that allows you to integrate your own placeholders.

How to set up

PistonMOTD uses CodeMC as the host for the API dependency hosting: Click here!

Maven

Repository:

<repositories>
    <repository>
        <id>CodeMC</id>
        <url>https://repo.codemc.org/repository/maven-public</url>
    </repository>
</repositories>

Dependency:

<dependency>
    <groupId>net.pistonmaster</groupId>
    <artifactId>pistonmotd-api</artifactId>
    <version>4.3.2</version>
</dependency>

Gradle

Repository:

allprojects {
    repositories {
        maven { url 'https://repo.codemc.org/repository/maven-public' }
    }
}

Dependency:

dependencies {
    implementation 'com.github.AlexProgrammerDE:PistonMOTD:4.1.0'
}

Usage

To register you need a class implementing the PlaceholderParser and to register it at the PlaceholderUtil with #registerParser() .

Here is an example of that: ServerPlaceholder Registering