From 96e94f7d49d27b151c72ea4918c3e5cf4f49aecf Mon Sep 17 00:00:00 2001 From: yoyosource Date: Mon, 4 Oct 2021 12:23:57 +0200 Subject: [PATCH] Implement FightServerPortal command --- src/de/steamwar/lobby/command/PortalCommand.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/de/steamwar/lobby/command/PortalCommand.java b/src/de/steamwar/lobby/command/PortalCommand.java index b9e06dc..9b1e2ea 100644 --- a/src/de/steamwar/lobby/command/PortalCommand.java +++ b/src/de/steamwar/lobby/command/PortalCommand.java @@ -10,6 +10,7 @@ import de.steamwar.command.SWCommand; import de.steamwar.command.TypeMapper; import de.steamwar.lobby.LobbySystem; import de.steamwar.lobby.portal.CommandPortal; +import de.steamwar.lobby.portal.FightserverPortal; import de.steamwar.lobby.portal.Portal; import de.steamwar.lobby.portal.TeleportPortal; import de.steamwar.sql.SteamwarUser; @@ -66,15 +67,14 @@ public class PortalCommand extends SWCommand { } @Register({"create", "fightserver"}) - public void portalAddFightserver(Player player, String portalName) { + public void portalAddFightserver(Player player, String portalName, String group, String target) { if (noPermissions(player)) return; Tuple tuple = getSelection(player); if (tuple == null) { LobbySystem.MESSAGE.send("PORTAL_NO_WORLDEDIT_SELECTION", player); return; } - // TODO: implement FightserverPortal - // new Portal(portalName, tuple.k, tuple.v, portal -> new CommandPortal(portal, String.join(" ", command))); + new Portal(portalName, tuple.k, tuple.v, portal -> new FightserverPortal(portal, group, target)); } @Register({"create", "teleport"})