diff --git a/Plugin/src/main/java/com/willfp/ecoenchants/integrations/placeholder/PlaceholderManager.java b/Plugin/src/main/java/com/willfp/ecoenchants/integrations/placeholder/PlaceholderManager.java index 96a8b1f9..364303fb 100644 --- a/Plugin/src/main/java/com/willfp/ecoenchants/integrations/placeholder/PlaceholderManager.java +++ b/Plugin/src/main/java/com/willfp/ecoenchants/integrations/placeholder/PlaceholderManager.java @@ -34,6 +34,9 @@ public class PlaceholderManager { public static String translatePlaceholders(String text, Player player) { if(integrations.isEmpty()) { placeholders.forEach(placeholderEntry -> { + if(player == null && placeholderEntry.requiresPlayer()) + return; + String test = "%ecoenchants_" + placeholderEntry.getIdentifier() + "%"; text.replaceAll(test, placeholderEntry.getResult(player)); }); diff --git a/Plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml b/Plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml index 67a21513..91753097 100644 --- a/Plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml +++ b/Plugin/src/main/resources/enchants/curse/breaklessnesscurse.yml @@ -3,7 +3,7 @@ # name: "Curse of Breaklessness" -description: Chance to prevent block breaking. +description: &a%ecoenchants_breaklessnesscurse_chance_per_level_percentage%%&f chance to prevent block breaking. enabled: true obtaining: