mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 17:27:38 +00:00
fix tabcomplete for brushes and possible many other commands
This commit is contained in:
parent
6d45169d9d
commit
b5f41501e4
@ -850,7 +850,7 @@ public final class PlatformCommandManager {
|
||||
|
||||
event.setSuggestions(suggestions.stream()
|
||||
.map(suggestion -> {
|
||||
int noSlashLength = arguments.length() - 1;
|
||||
int noSlashLength = arguments.length();
|
||||
Substring original = suggestion.getReplacedArgument() == split.size()
|
||||
? Substring.from(arguments, noSlashLength, noSlashLength)
|
||||
: split.get(suggestion.getReplacedArgument());
|
||||
|
Loading…
Reference in New Issue
Block a user