Unregister placeholder api extension synchronously

Affects issues:
- Fixed #2841
This commit is contained in:
Aurora Lahtela 2023-02-03 17:16:49 +02:00
parent 5b6efa0438
commit 12d22f945f

View File

@ -144,7 +144,7 @@ public class Plan extends JavaPlugin implements PlanPlugin {
private void unregisterPlaceholders(BukkitPlaceholderRegistrar placeholders) {
if (placeholders != null) {
placeholders.unregister();
runnableFactory.create(placeholders::unregister);
}
}