From 2eeedd8add9d7990d7ed42367e63af6b7a430ce9 Mon Sep 17 00:00:00 2001 From: levischnorr Date: Tue, 6 Feb 2024 12:52:38 +0100 Subject: [PATCH] More tab completion changes --- .../src/main/java/mavenmcserver/command/CommandTicTacToe.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java b/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java index a012f2a..fc87168 100644 --- a/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java +++ b/mavenmcserver/src/main/java/mavenmcserver/command/CommandTicTacToe.java @@ -182,7 +182,7 @@ public List onTabComplete(CommandSender sender, Command command, String } ArrayList filteredCompletions = new ArrayList(); - StringUtil.copyPartialMatches(argList.size() > 0 ? argList.get(argList.size() - 1) : "", completions, filteredCompletions); + StringUtil.copyPartialMatches(args[args.length - 1], completions, filteredCompletions); return filteredCompletions; }