mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 16:37:58 +01: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() {
|
private void registerPlaceholderAPIExtension() {
|
||||||
try {
|
try {
|
||||||
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
|
if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
|
||||||
|
runnableFactory.create("Placeholders Registrar", new AbsRunnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
PlaceholderRegistrar.register(system, errorHandler);
|
PlaceholderRegistrar.register(system, errorHandler);
|
||||||
}
|
}
|
||||||
|
}).runTask();
|
||||||
|
}
|
||||||
} catch (Exception | NoClassDefFoundError | NoSuchMethodError failed) {
|
} catch (Exception | NoClassDefFoundError | NoSuchMethodError failed) {
|
||||||
logger.warn("Failed to register PlaceholderAPI placeholders: " + failed.toString());
|
logger.warn("Failed to register PlaceholderAPI placeholders: " + failed.toString());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user