Skip to content

Commit

Permalink
fix(integration): hook into PlaceholderAPI if not enabled but present
Browse files Browse the repository at this point in the history
  • Loading branch information
Silthus committed Feb 21, 2022
1 parent d01e12d commit 5d70217
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public final class SChatBukkitServer extends AbstractSChatServerPlugin {
protected void onEnable() {
super.onEnable();

if (Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
if (Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
new PlaceholderApiIntegration(viewController()).init();
logger().info("Enabled PlaceholderAPI integration.");
}
Expand Down

0 comments on commit 5d70217

Please sign in to comment.