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,8 +85,13 @@ public class Plan extends BukkitPlugin implements PlanPlugin {
|
||||
private void registerPlaceholderAPIExtension() {
|
||||
try {
|
||||
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
|
||||
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