Skip to content

Commit

Permalink
Fix PAPI placeholder not being replaced for certain messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofpu committed Aug 22, 2024
1 parent 9326421 commit f1fbdeb
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,7 @@ public static Component sendMessage(final CommonBridgePlayer<?> sender,
if (content.isEmpty()) {
return null;
}
final Component component = translateMiniMessage(content);
sendMessage(sender.getPlayer(), component);
return component;
return sendMessage(sender.getPlayer(), content);
}

/**
Expand All @@ -130,8 +128,9 @@ public static Component sendMessage(final CommandSender sender, String content)
if (sender instanceof Player) {
content = replaceWithPAPI((Player) sender, content);
}

final Component component = translateMiniMessage(content);

sendMessage(sender, component);
return component;
}
Expand Down

0 comments on commit f1fbdeb

Please sign in to comment.