Merge pull request 'Fix TabCompleteException' (#118) from FixTabComplete into master
Reviewed-by: Chaoscaot <chaoscaot444@gmail.com>
Dieser Commit ist enthalten in:
Commit
6f74360f3b
@ -29,11 +29,7 @@ import java.util.List;
|
||||
public class WECommandFlopyp extends WECommand {
|
||||
|
||||
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
|
||||
List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
||||
if (args.length == 0) {
|
||||
return tabCompletes;
|
||||
}
|
||||
return manageList(tabCompletes, args, args.length - 1);
|
||||
return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -29,11 +29,7 @@ import java.util.List;
|
||||
public class WECommandPaste extends WECommand {
|
||||
|
||||
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
|
||||
List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
||||
if (args.length == 0) {
|
||||
return tabCompletes;
|
||||
}
|
||||
return manageList(tabCompletes, args, args.length - 1);
|
||||
return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren