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

@@ -15,6 +15,7 @@ import de.nexuslobby.modules.portal.PortalCommand;
import de.nexuslobby.modules.servers.ServerSwitcherListener;
import de.nexuslobby.modules.armorstandtools.*;
import de.nexuslobby.modules.gadgets.GadgetModule;
import de.nexuslobby.modules.hologram.HologramModule;
import de.nexuslobby.utils.VoidProtection;
import de.nexuslobby.utils.DoubleJump;
import de.nexuslobby.utils.PlayerHider;
@@ -50,6 +51,8 @@ public class NexusLobby extends JavaPlugin implements Listener {
private LobbySettingsModule lobbySettingsModule;
private ItemsModule itemsModule;
private GadgetModule gadgetModule;
private HologramModule hologramModule;
private DynamicArmorStandModule dynamicArmorStandModule; // Neu hinzugefügt
private File visualsFile;
private FileConfiguration visualsConfig;
@@ -65,7 +68,6 @@ public class NexusLobby extends JavaPlugin implements Listener {
public void onEnable() {
instance = this;
// Erst Config initialisieren
initCustomConfigs();
getServer().getMessenger().registerOutgoingPluginChannel(this, "BungeeCord");
@@ -137,6 +139,13 @@ public class NexusLobby extends JavaPlugin implements Listener {
this.gadgetModule = new GadgetModule();
moduleManager.registerModule(this.gadgetModule);
this.hologramModule = new HologramModule();
moduleManager.registerModule(this.hologramModule);
// Dynamic ArmorStand Module registrieren
this.dynamicArmorStandModule = new DynamicArmorStandModule();
moduleManager.registerModule(this.dynamicArmorStandModule);
moduleManager.registerModule(new SecurityModule());
moduleManager.registerModule(new BossBarModule());
moduleManager.registerModule(new ActionBarModule());
@@ -200,14 +209,9 @@ public class NexusLobby extends JavaPlugin implements Listener {
File configFile = new File(getDataFolder(), "config.yml");
if (!configFile.exists()) {
// Nur speichern wenn sie fehlt
saveResource("config.yml", false);
} else {
// WICHTIG: ConfigUpdater für config.yml deaktiviert, da er Sektionen nicht korrekt erkennt!
// ConfigUpdater.updateConfig("config.yml");
}
// Einfaches Laden reicht völlig aus
reloadConfig();
File settingsFile = new File(getDataFolder(), "settings.yml");
@@ -247,7 +251,7 @@ public class NexusLobby extends JavaPlugin implements Listener {
}
private void registerCommands() {
LobbyTabCompleter tabCompleter = new LobbyTabCompleter(portalManager);
LobbyTabCompleter tabCompleter = new LobbyTabCompleter(portalManager, hologramModule);
PluginCommand portalCmd = this.getCommand("portal");
if (portalCmd != null) {
@@ -255,6 +259,12 @@ public class NexusLobby extends JavaPlugin implements Listener {
portalCmd.setTabCompleter(tabCompleter);
}
PluginCommand holoCmd = this.getCommand("holo");
if (holoCmd != null) {
holoCmd.setExecutor(new HoloCommand(hologramModule));
holoCmd.setTabCompleter(tabCompleter);
}
PluginCommand maintenanceCmd = this.getCommand("maintenance");
if (maintenanceCmd != null) {
maintenanceCmd.setExecutor(new MaintenanceCommand());
@@ -303,4 +313,6 @@ public class NexusLobby extends JavaPlugin implements Listener {
public LobbySettingsModule getLobbySettingsModule() { return lobbySettingsModule; }
public ItemsModule getItemsModule() { return itemsModule; }
public GadgetModule getGadgetModule() { return gadgetModule; }
public HologramModule getHologramModule() { return hologramModule; }
public DynamicArmorStandModule getDynamicArmorStandModule() { return dynamicArmorStandModule; } // Getter hinzugefügt
}