๐Ÿง‘โ€๐Ÿ’ปDeveloper API

LPC Pro v2 includes a public API module for third-party plugin developers to integrate with.

circle-exclamation

API Module

The API is available as a separate module: lpcpro-api.

Maven Dependency

<dependency>
    <groupId>com.wikmor</groupId>
    <artifactId>lpcpro-api</artifactId>
    <version>1.0.0</version>
    <scope>provided</scope>
</dependency>

Soft Dependency

Add LPC Pro as a soft dependency in your plugin.yml:

softdepend:
  - LPC-Pro

PlaceholderAPI Integration

The recommended way to read LPC Pro data from another plugin is through PlaceholderAPI:

See the Placeholders page for the full list of available placeholders.

Bukkit Events

LPC Pro processes chat through Bukkit's event system. On Paper servers, it uses Paper's AsyncChatEvent; on Spigot, it falls back to AsyncPlayerChatEvent.

circle-info

LPC Pro listens on HIGH priority and cancels the event after processing, handling message delivery itself through its channel system. A MONITOR listener will see a cancelled event. If you need to read the final result, use PlaceholderAPI or listen on NORMAL priority to process before LPC Pro.

Build Information

Property
Value

Group ID

com.wikmor

Artifact ID

lpcpro-api

Version

1.0.0

Java Target

Java 8 (source/target)

Main Package

com.wikmor.lpcpro.api

Last updated