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