1
0
mirror of https://github.com/Zrips/Jobs.git synced 2024-11-26 04:25:15 +01:00

Update TabComplete.java

This commit is contained in:
montlikadani 2018-08-16 17:54:30 +02:00 committed by GitHub
parent 058b8440a8
commit 925ee2c478
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ public class TabComplete implements TabCompleter {
if (args.length == 1) { if (args.length == 1) {
String PartOfCommand = args[0]; String PartOfCommand = args[0];
List<String> temp = new ArrayList<String>(); List<String> temp = new ArrayList<>();
for (Entry<String, Integer> BCmd : Jobs.getCommandManager().GetCommands(sender).entrySet()) { for (Entry<String, Integer> BCmd : Jobs.getCommandManager().GetCommands(sender).entrySet()) {
temp.add(BCmd.getKey()); temp.add(BCmd.getKey());
@ -50,7 +50,7 @@ public class TabComplete implements TabCompleter {
continue; continue;
String arg = ArgsList.get(i - 1); String arg = ArgsList.get(i - 1);
List<String> temp = new ArrayList<String>(); List<String> temp = new ArrayList<>();
if (arg.contains("%%")) if (arg.contains("%%"))
for (String one : arg.split("%%")) { for (String one : arg.split("%%")) {