diff --git a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandBau.java b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandBau.java index 43c92f3..bcf16f0 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandBau.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/commands/CommandBau.java @@ -24,13 +24,13 @@ import de.steamwar.bausystem.world.Welt; import de.steamwar.command.SWCommand; import de.steamwar.command.SWCommandUtils; import de.steamwar.command.TypeMapper; -import de.steamwar.comms.handlers.BungeeHandler; import de.steamwar.sql.BauweltMember; import de.steamwar.sql.SteamwarUser; import java.util.stream.Collectors; import org.bukkit.Bukkit; import org.bukkit.entity.Player; + public class CommandBau extends SWCommand { public CommandBau() { @@ -126,7 +126,7 @@ public class CommandBau extends SWCommand { @ClassMapper(value = LocalPlayer.class, local = true) private TypeMapper mapCommandConfirmation() { return SWCommandUtils.createMapper(LocalPlayer::new, - s -> Bukkit.getOnlinePlayers().stream().map(Player::getName).collect(Collectors.toList())); + (c, s) -> Bukkit.getOnlinePlayers().stream().map(Player::getName).filter(n -> !c.getName().equals(n)).collect(Collectors.toList())); }