Update from Git Manager GUI

This commit is contained in:
2026-01-23 10:43:53 +01:00
parent 9fd0690ba8
commit 5f2c05d85e
13 changed files with 984 additions and 114 deletions

View File

@@ -1,6 +1,7 @@
package de.nexuslobby.commands;
import de.nexuslobby.modules.portal.PortalManager;
import de.nexuslobby.modules.hologram.HologramModule;
import org.bukkit.command.Command;
import org.bukkit.command.CommandSender;
import org.bukkit.command.TabCompleter;
@@ -13,9 +14,11 @@ import java.util.stream.Collectors;
public class LobbyTabCompleter implements TabCompleter {
private final PortalManager portalManager;
private final HologramModule hologramModule;
public LobbyTabCompleter(PortalManager portalManager) {
public LobbyTabCompleter(PortalManager portalManager, HologramModule hologramModule) {
this.portalManager = portalManager;
this.hologramModule = hologramModule;
}
@Override
@@ -37,6 +40,16 @@ public class LobbyTabCompleter implements TabCompleter {
}
}
// --- Hologram Befehl ---
else if (command.getName().equalsIgnoreCase("holo")) {
if (args.length == 1) {
suggestions.add("create");
suggestions.add("delete");
} else if (args.length == 2 && args[0].equalsIgnoreCase("delete")) {
suggestions.addAll(hologramModule.getHologramIds());
}
}
// --- Wartungsmodus ---
else if (command.getName().equalsIgnoreCase("maintenance")) {
if (args.length == 1) {
@@ -60,23 +73,22 @@ public class LobbyTabCompleter implements TabCompleter {
else if (command.getName().equalsIgnoreCase("nexustools") || command.getName().equalsIgnoreCase("astools") || command.getName().equalsIgnoreCase("nt")) {
if (args.length == 1) {
suggestions.add("reload");
suggestions.add("dynamic"); // Neu: Vorschlag für den Dynamic-Modus
}
}
// --- NexusCmd (ehemals ascmd) ---
else if (command.getName().equalsIgnoreCase("nexuscmd") || command.getName().equalsIgnoreCase("ascmd") || command.getName().equalsIgnoreCase("ncmd")) {
if (args.length == 1) {
suggestions.add("name"); // NEU
suggestions.add("name");
suggestions.add("list");
suggestions.add("add");
suggestions.add("remove");
}
// Vorschläge für: /nexuscmd name <Text>
else if (args.length == 2 && args[0].equalsIgnoreCase("name")) {
suggestions.add("none");
suggestions.add("<Text>");
}
// Vorschläge für: /nexuscmd add <delay> <cooldown> <type>
else if (args.length == 2 && args[0].equalsIgnoreCase("add")) {
suggestions.add("0");
}
@@ -93,7 +105,6 @@ public class LobbyTabCompleter implements TabCompleter {
}
}
// Filtert die Liste basierend auf dem, was der Spieler bereits getippt hat
return suggestions.stream()
.filter(s -> s.toLowerCase().startsWith(args[args.length - 1].toLowerCase()))
.collect(Collectors.toList());