forked from SteamWar/SteamWar
With EndsWithHandler
This commit is contained in:
+1
-1
@@ -57,7 +57,7 @@ public final class EndsWithHandler {
|
|||||||
@Override
|
@Override
|
||||||
public Collection<String> tabComplete(Object sender, PreviousArguments previousArguments, String s) {
|
public Collection<String> tabComplete(Object sender, PreviousArguments previousArguments, String s) {
|
||||||
return super.tabComplete(sender, previousArguments, s).stream().map(s1 -> {
|
return super.tabComplete(sender, previousArguments, s).stream().map(s1 -> {
|
||||||
if (s1.startsWith(endsWith)) return s1;
|
if (s1.endsWith(endsWith)) return s1;
|
||||||
return s1 + endsWith;
|
return s1 + endsWith;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user