mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-15 05:41:51 +08:00
Fixed Placeholder Registration on Bukkit 1.14
This commit is contained in:
parent
00de6e535e
commit
4c55c642bd
@ -85,7 +85,12 @@ public class Plan extends BukkitPlugin implements PlanPlugin {
|
||||
private void registerPlaceholderAPIExtension() {
|
||||
try {
|
||||
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
|
||||
PlaceholderRegistrar.register(system, errorHandler);
|
||||
runnableFactory.create("Placeholders Registrar", new AbsRunnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
PlaceholderRegistrar.register(system, errorHandler);
|
||||
}
|
||||
}).runTask();
|
||||
}
|
||||
} catch (Exception | NoClassDefFoundError | NoSuchMethodError failed) {
|
||||
logger.warn("Failed to register PlaceholderAPI placeholders: " + failed.toString());
|
||||
|
Loading…
Reference in New Issue
Block a user