diff options
Diffstat (limited to 'me/Danker/commands/PetsCommand.java')
-rw-r--r-- | me/Danker/commands/PetsCommand.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/me/Danker/commands/PetsCommand.java b/me/Danker/commands/PetsCommand.java index 8c53732..6d7f241 100644 --- a/me/Danker/commands/PetsCommand.java +++ b/me/Danker/commands/PetsCommand.java @@ -10,10 +10,12 @@ import com.google.gson.JsonObject; import me.Danker.handlers.APIHandler; import me.Danker.handlers.ConfigHandler; +import me.Danker.utils.CommandUtils; import net.minecraft.command.CommandBase; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.util.BlockPos; import net.minecraft.util.ChatComponentText; import net.minecraft.util.EnumChatFormatting; @@ -68,6 +70,14 @@ public class PetsCommand extends CommandBase { public int getRequiredPermissionLevel() { return 0; } + + @Override + public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { + if (args.length == 1) { + return CommandUtils.getMatchingPlayers(args[0]); + } + return null; + } @Override public void processCommand(ICommandSender arg0, String[] arg1) throws CommandException { |