From 146a88e577d658ae4f12cad88945cc21e39b8794 Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Thu, 22 Jul 2021 09:38:11 +1000 Subject: [PATCH] SPIGOT-6641: Use varargs in sendMessage By: DerFrZocker --- paper-api/src/main/java/org/bukkit/command/CommandSender.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/command/CommandSender.java b/paper-api/src/main/java/org/bukkit/command/CommandSender.java index b76cf67b12..a7a2587b4c 100644 --- a/paper-api/src/main/java/org/bukkit/command/CommandSender.java +++ b/paper-api/src/main/java/org/bukkit/command/CommandSender.java @@ -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