Fix TabCompleteException #118
@ -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