mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-10-31 23:59:35 +01:00
Give-Command: Suggest all
instead of @a
by default
This commit is contained in:
parent
e0507324cd
commit
474d4e447f
@ -71,7 +71,11 @@ public class GiveCommand extends AbstractCommand {
|
||||
players.add(player.getName());
|
||||
}
|
||||
|
||||
players.add("all");
|
||||
|
||||
if ("@a".startsWith(args[0].toLowerCase())) {
|
||||
players.add("@a");
|
||||
}
|
||||
|
||||
return Utils.getMatches(args[0], players, true);
|
||||
} else if (args.length == 2) {
|
||||
@ -102,7 +106,7 @@ public class GiveCommand extends AbstractCommand {
|
||||
|
||||
@Override
|
||||
public String getSyntax() {
|
||||
return "/ea give <player/@a> <amount in hours / infinite>";
|
||||
return "/ea give <player/all> <amount in hours / infinite>";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user