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