From f00561f064c0b251b511998dcb7ea497077b6e6e Mon Sep 17 00:00:00 2001 From: Zeanon Date: Fri, 2 Apr 2021 00:02:55 +0200 Subject: [PATCH] removed self from bau toggle tab completion --- .../src/de/steamwar/bausystem/commands/CommandBau.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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())); }