Remove player length constraint

This commit is contained in:
2025-03-02 18:51:01 +01:00
parent 8b49b8a736
commit af55c946a6
@@ -39,15 +39,14 @@ import java.util.stream.Collectors;
public class SendCommand extends SWCommand {
// /send to <server> only [<users>]
// <server> can also be current
// /send <server> [<users>]
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();
}