This commit is contained in:
2025-02-21 22:34:29 +01:00
parent bcdc356eaf
commit df354a38d7
5 changed files with 5 additions and 11 deletions

View File

@@ -206,6 +206,9 @@ public class EditKitCommand implements CommandExecutor, TabCompleter {
@Override
public @Nullable List<String> onTabComplete(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
if (args.length == 1) {
return List.of("sword", "uhc");
}
return List.of();
}
}

View File

@@ -153,12 +153,9 @@ public class TpToFfaCommand implements CommandExecutor, TabCompleter {
@Override
public @Nullable List<String> onTabComplete(@NotNull CommandSender cmds, @NotNull Command command, @NotNull String s, @NotNull String[] args) {
if (args.length == 1) {
List.of("sword", "uhc");
return List.of("sword", "uhc");
} else if (args.length == 2) {
List<String> playerNames = new ArrayList<>();
for (Player onlinePlayer : Bukkit.getOnlinePlayers()) {
playerNames.add(onlinePlayer.getName());
}
return null;
}
return List.of();
}

View File

@@ -1,6 +0,0 @@
package hu.jgj52.wolfFFA.Managers;
public class FileManager {
}