fn: ensure PlaceholderAPI is enabled before registering placeholders in debug mode

This commit is contained in:
Oliver
2025-04-17 16:47:01 +02:00
parent 2f331cd49f
commit f5f81a12b4

View File

@@ -321,7 +321,7 @@ public class FancyNpcs extends JavaPlugin implements FancyNpcsPlugin {
getLogger().warning("Commands and related components have not been registered. This can be changed by setting 'register_commands' to true, and restarting the server.");
}
if (ENABLE_DEBUG_MODE_FEATURE_FLAG.isEnabled()) {
if (ENABLE_DEBUG_MODE_FEATURE_FLAG.isEnabled() && Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
PlaceholderApiEnv.registerPlaceholders();
}