mirror of
https://github.com/FancyInnovations/FancyPlugins.git
synced 2025-12-06 07:43:36 +00:00
fn: ensure PlaceholderAPI is enabled before registering placeholders in debug mode
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user