forked from SteamWar/SteamWar
Implement Linkage for LobbySystem
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user