Fix TabCompleteException
Dieser Commit ist enthalten in:
Ursprung
7bfabf2ddc
Commit
c9d2a7fddc
@ -29,11 +29,7 @@ import java.util.List;
|
|||||||
public class WECommandFlopyp extends WECommand {
|
public class WECommandFlopyp extends WECommand {
|
||||||
|
|
||||||
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
|
||||||
List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
||||||
if (args.length == 0) {
|
|
||||||
return tabCompletes;
|
|
||||||
}
|
|
||||||
return manageList(tabCompletes, args, args.length - 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -29,11 +29,7 @@ import java.util.List;
|
|||||||
public class WECommandPaste extends WECommand {
|
public class WECommandPaste extends WECommand {
|
||||||
|
|
||||||
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
|
public List<String> onTabComplete(CommandSender sender, Command command, String s, String[] args) {
|
||||||
List<String> tabCompletes = Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
return Arrays.asList("-a", "-b", "-e", "-n", "-o", "-s", "-m");
|
||||||
if (args.length == 0) {
|
|
||||||
return tabCompletes;
|
|
||||||
}
|
|
||||||
return manageList(tabCompletes, args, args.length - 1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren