Skip to content

Commit

Permalink
Update Color.java
Browse files Browse the repository at this point in the history
  • Loading branch information
Refrac authored Aug 14, 2023
1 parent f1e641d commit efb69d3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Color {
public static String translate(CommandSender sender, String source) {
source = Placeholders.setPlaceholders(sender, source);

if (sender instanceof Player && Bukkit.getPluginManager().isPluginEnabled("PlaceholderAPI")) {
if (sender instanceof Player && Bukkit.getPluginManager().getPlugin("PlaceholderAPI") != null) {
return PlaceholderAPIHook.applyPlaceholders((Player) sender, translate(source));
} else return translate(source);
}
Expand All @@ -41,4 +41,4 @@ public static void sendDebug(@Nullable CommandSender sender, String message) {

log("&7Debug: " + message);
}
}
}

0 comments on commit efb69d3

Please sign in to comment.