forked from SteamWar/SteamWar
Remove player length constraint
This commit is contained in:
@@ -39,15 +39,14 @@ import java.util.stream.Collectors;
|
|||||||
|
|
||||||
public class SendCommand extends SWCommand {
|
public class SendCommand extends SWCommand {
|
||||||
|
|
||||||
// /send to <server> only [<users>]
|
// /send <server> [<users>]
|
||||||
// <server> can also be current
|
|
||||||
|
|
||||||
public SendCommand() {
|
public SendCommand() {
|
||||||
super("send", UserPerm.TEAM);
|
super("send", UserPerm.TEAM);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Register("to")
|
@Register
|
||||||
public void sendCommand(Chatter sender, RegisteredServer toServer, @ArrayLength(min = 1) Player... players) {
|
public void sendCommand(Chatter sender, RegisteredServer toServer, Player... players) {
|
||||||
for (Player player : players) {
|
for (Player player : players) {
|
||||||
player.createConnectionRequest(toServer).fireAndForget();
|
player.createConnectionRequest(toServer).fireAndForget();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user