mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
SPIGOT-6641: Use varargs in sendMessage
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
95cc961f13
commit
146a88e577
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ public interface CommandSender extends Permissible {
|
|||
*
|
||||
* @param messages An array of messages to be displayed
|
||||
*/
|
||||
public void sendMessage(@NotNull String[] messages);
|
||||
public void sendMessage(@NotNull String... messages);
|
||||
|
||||
/**
|
||||
* Sends this sender a message
|
||||
|
@ -36,7 +36,7 @@ public interface CommandSender extends Permissible {
|
|||
* @param messages An array of messages to be displayed
|
||||
* @param sender The sender of this message
|
||||
*/
|
||||
public void sendMessage(@Nullable UUID sender, @NotNull String[] messages);
|
||||
public void sendMessage(@Nullable UUID sender, @NotNull String... messages);
|
||||
|
||||
/**
|
||||
* Returns the server instance that this command is running on
|
||||
|
|
Loading…
Reference in a new issue