9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-19 15:09:24 +00:00

Update BukkitActionManager.java

This commit is contained in:
XiaoMoMi
2024-08-12 23:31:12 +08:00
parent 394b742ae0
commit d7338727cb

View File

@@ -191,7 +191,7 @@ public class BukkitActionManager implements ActionManager<Player> {
return context -> {
if (Math.random() > chance) return;
List<String> replaced = plugin.getPlaceholderManager().parse(context.getHolder(), messages, context.placeholderMap());
for (Player player : location.getWorld().getPlayers()) {
for (Player player : Bukkit.getOnlinePlayers()) {
Audience audience = plugin.getSenderFactory().getAudience(player);
for (String text : replaced) {
audience.sendMessage(AdventureHelper.miniMessage(text));