mirror of
https://github.com/songoda/SongodaCore.git
synced 2025-02-20 05:21:22 +01:00
Send multiple messages at once.
This commit is contained in:
parent
6222a5cda9
commit
7dd5f07404
@ -20,6 +20,16 @@ public class PlayerUtils {
|
|||||||
|
|
||||||
static Random random = new Random();
|
static Random random = new Random();
|
||||||
|
|
||||||
|
public static void sendMessages(Player player, String... messages) {
|
||||||
|
for (String message : messages)
|
||||||
|
player.sendMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void sendMessages(Player player, List<String> messages) {
|
||||||
|
for (String message : messages)
|
||||||
|
player.sendMessage(message);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get a list of all of the players that this player can "see"
|
* Get a list of all of the players that this player can "see"
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user