From 474d4e447faaaeda4b1b04498cc869d7b5f93cfa Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sat, 12 Jun 2021 15:14:45 +0200 Subject: [PATCH] Give-Command: Suggest `all` instead of `@a` by default --- .../com/songoda/epicanchors/commands/sub/GiveCommand.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/epicanchors-plugin/src/main/java/com/songoda/epicanchors/commands/sub/GiveCommand.java b/modules/epicanchors-plugin/src/main/java/com/songoda/epicanchors/commands/sub/GiveCommand.java index 7fbdc27..c90c96c 100644 --- a/modules/epicanchors-plugin/src/main/java/com/songoda/epicanchors/commands/sub/GiveCommand.java +++ b/modules/epicanchors-plugin/src/main/java/com/songoda/epicanchors/commands/sub/GiveCommand.java @@ -71,7 +71,11 @@ public class GiveCommand extends AbstractCommand { players.add(player.getName()); } - players.add("@a"); + 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 "; + return "/ea give "; } @Override