From af55c946a6892cd600e00c56065e7d8a55fbe855 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Sun, 2 Mar 2025 18:51:01 +0100 Subject: [PATCH] Remove player length constraint --- .../src/de/steamwar/velocitycore/commands/SendCommand.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java b/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java index 77cd2193..5480f277 100644 --- a/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java +++ b/VelocityCore/src/de/steamwar/velocitycore/commands/SendCommand.java @@ -39,15 +39,14 @@ import java.util.stream.Collectors; public class SendCommand extends SWCommand { - // /send to only [] - // can also be current + // /send [] public SendCommand() { super("send", UserPerm.TEAM); } - @Register("to") - public void sendCommand(Chatter sender, RegisteredServer toServer, @ArrayLength(min = 1) Player... players) { + @Register + public void sendCommand(Chatter sender, RegisteredServer toServer, Player... players) { for (Player player : players) { player.createConnectionRequest(toServer).fireAndForget(); }