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
@@ -20,11 +20,13 @@
package de.steamwar.lobby.command;
import de.steamwar.command.SWCommand;
import de.steamwar.linkage.Linked;
import de.steamwar.lobby.util.LobbyPlayer;
import de.steamwar.sql.SteamwarUser;
import de.steamwar.sql.UserPerm;
import org.bukkit.entity.Player;
@Linked
public class FlyCommand extends SWCommand {
public FlyCommand() {
@@ -20,10 +20,12 @@
package de.steamwar.lobby.command;
import de.steamwar.command.SWCommand;
import de.steamwar.linkage.Linked;
import de.steamwar.lobby.LobbySystem;
import de.steamwar.lobby.display.Hologram;
import org.bukkit.entity.Player;
@Linked
public class HologramCommand extends SWCommand {
public HologramCommand() {
@@ -20,6 +20,7 @@
package de.steamwar.lobby.command;
import de.steamwar.command.SWCommand;
import de.steamwar.linkage.Linked;
import de.steamwar.lobby.LobbySystem;
import de.steamwar.lobby.listener.PlayerSpawn;
import de.steamwar.sql.SteamwarUser;
@@ -35,6 +36,7 @@ import org.bukkit.event.player.PlayerQuitEvent;
import java.util.HashSet;
import java.util.Set;
@Linked
public class ModifyCommand extends SWCommand implements Listener {
private static final Set<HumanEntity> modifying = new HashSet<>();
@@ -45,7 +47,7 @@ public class ModifyCommand extends SWCommand implements Listener {
public ModifyCommand() {
super("modify");
Bukkit.getPluginManager().registerEvents(this, LobbySystem.getPlugin());
Bukkit.getPluginManager().registerEvents(this, LobbySystem.getInstance());
}
@Register
@@ -8,6 +8,7 @@ import com.sk89q.worldedit.regions.CuboidRegion;
import com.sk89q.worldedit.regions.RegionSelector;
import de.steamwar.command.SWCommand;
import de.steamwar.command.TypeMapper;
import de.steamwar.linkage.Linked;
import de.steamwar.lobby.LobbySystem;
import de.steamwar.lobby.portal.*;
import de.steamwar.sql.SteamwarUser;
@@ -22,6 +23,7 @@ import org.bukkit.entity.Player;
import java.util.ArrayList;
import java.util.List;
@Linked
public class PortalCommand extends SWCommand {
public PortalCommand() {