mirror of
https://github.com/ViaVersion/ViaVersion.git
synced 2024-09-11 22:28:03 +02:00
Merge pull request #842 from creeper123123321/bug-fix/tab-complete
Fix tab completion on Sponge
This commit is contained in:
commit
684c25dc2c
@ -27,7 +27,7 @@ public class SpongeCommandHandler extends ViaCommandHandler implements CommandCa
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<String> getSuggestions(CommandSource source, String arguments) throws CommandException {
|
public List<String> getSuggestions(CommandSource source, String arguments) throws CommandException {
|
||||||
String[] args = arguments.length() > 0 ? arguments.split(" ") : new String[0];
|
String[] args = arguments.split(" "); // ViaCommandHandler handles empty String in array
|
||||||
return onTabComplete(new SpongeCommandSender(source), args);
|
return onTabComplete(new SpongeCommandSender(source), args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user