Implement Linkage for LobbySystem

This commit is contained in:
2025-10-23 17:20:07 +02:00
parent 22d1e15ae0
commit 33b606060a
37 changed files with 111 additions and 111 deletions
@@ -21,18 +21,12 @@ package de.steamwar.lobby;
import de.steamwar.core.Core;
import de.steamwar.entity.REntityServer;
import de.steamwar.lobby.command.FlyCommand;
import de.steamwar.lobby.command.HologramCommand;
import de.steamwar.lobby.command.ModifyCommand;
import de.steamwar.lobby.command.PortalCommand;
import de.steamwar.lobby.jumpandrun.JumpAndRun;
import de.steamwar.lobby.jumpandrun.JumpAndRunCommand;
import de.steamwar.lobby.listener.*;
import de.steamwar.linkage.AbstractLinker;
import de.steamwar.linkage.SpigotLinker;
import de.steamwar.lobby.listener.AlphaWall;
import de.steamwar.lobby.map.CustomMap;
import de.steamwar.lobby.particle.ParticleListener;
import de.steamwar.lobby.special.advent.AdventsCalendar;
import de.steamwar.lobby.team.TeamPlayer;
import de.steamwar.message.Message;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
public class LobbySystem extends JavaPlugin {
@@ -43,6 +37,8 @@ public class LobbySystem extends JavaPlugin {
private static REntityServer entityServer;
private static REntityServer debugEntityServer;
private static SpigotLinker spigotLinker;
@Override
public void onLoad() {
plugin = this;
@@ -56,43 +52,32 @@ public class LobbySystem extends JavaPlugin {
Core.setServerName("Lobby");
CustomMap.init();
Fightserver.init();
new Portals();
new PortalCommand();
new HologramCommand();
new FlyCommand();
new ModifyCommand();
new JumpAndRun();
new JumpAndRunCommand();
config = new Config(getConfig());
new PlayerSpawn();
new DoubleJumpListener();
new ParticleListener();
new InventoryInteraction();
new WorldInteraction();
new PlayerSeatListener();
new MapsRotateListener();
new TeleporterListener();
new TeamPlayer();
spigotLinker = new SpigotLinker(this, message);
try {
spigotLinker.link();
} catch (AbstractLinker.LinkException e) {
e.printStackTrace();
Bukkit.shutdown();
return;
}
// EggHunt.init();
AdventsCalendar.init();
new AlphaWall(l -> l.getX() > 999, AlphaWall.REFLECT_X);
new AlphaWall(l -> l.getX() < 2977, AlphaWall.REFLECT_X);
new AlphaWall(l -> l.getZ() > 892, AlphaWall.REFLECT_Z);
new AlphaWall(l -> l.getZ() < 1794, AlphaWall.REFLECT_Z);
new LobbyPacketHandler().register();
}
@Override
public void onDisable() {
spigotLinker.unlink();
}
public static LobbySystem getPlugin() {
public static LobbySystem getInstance() {
return plugin;
}