From 76dc4948bcab1897c47faef1b6608e339d2fccf6 Mon Sep 17 00:00:00 2001 From: Auxilor Date: Thu, 20 Jan 2022 09:43:53 +0000 Subject: [PATCH] Fixed playerless placeholders --- .../eco/core/integrations/placeholder/PlaceholderManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eco-api/src/main/java/com/willfp/eco/core/integrations/placeholder/PlaceholderManager.java b/eco-api/src/main/java/com/willfp/eco/core/integrations/placeholder/PlaceholderManager.java index 7c7bb7c3..1c1d8e41 100644 --- a/eco-api/src/main/java/com/willfp/eco/core/integrations/placeholder/PlaceholderManager.java +++ b/eco-api/src/main/java/com/willfp/eco/core/integrations/placeholder/PlaceholderManager.java @@ -75,7 +75,7 @@ public final class PlaceholderManager { public static String getResult(@Nullable final Player player, @NotNull final String identifier, @Nullable final EcoPlugin plugin) { - EcoPlugin owner = player == null ? Eco.getHandler().getEcoPlugin() : plugin; + EcoPlugin owner = plugin == null ? Eco.getHandler().getEcoPlugin() : plugin; PlaceholderEntry entry = REGISTERED_PLACEHOLDERS.getOrDefault(owner, new HashMap<>()).get(identifier.toLowerCase()); if (entry == null && plugin != null) {