mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-01-10 09:47:34 +01:00
Update AdventureUtils.java
This commit is contained in:
parent
638b793040
commit
3233c92679
@ -39,10 +39,10 @@ public class AdventureUtils {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Send message
|
//Send message
|
||||||
public static void sendMessage(Plugin plugin, Component message, Player... target) {
|
public static void sendMessage(Plugin plugin, Component message, CommandSender... target) {
|
||||||
try (BukkitAudiences bukkitAudiences = BukkitAudiences.create(plugin)){
|
try (BukkitAudiences bukkitAudiences = BukkitAudiences.create(plugin)){
|
||||||
for (Player player : target) {
|
for (CommandSender sender : target) {
|
||||||
bukkitAudiences.player(player).sendMessage(message);
|
bukkitAudiences.sender(sender).sendMessage(message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user