From f9f0f837796d396a1beda43288ffb896321c7c40 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 13 Sep 2022 22:34:59 +0200 Subject: [PATCH] Don't kick players Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/commands/BauCommand.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index ef3bba2..6e845ce 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -338,12 +338,6 @@ public class BauCommand extends BasicCommand { } UserConfig.updateUserConfig(owner.getId(), BAU_LOCK_CONFIG_NAME, state == BauLockState.OPEN ? null : state.name()); - Subserver.getServerList().stream().filter(server -> server.getType() == Servertype.BAUSERVER && ((Bauserver)server).getOwner().equals(p.getUniqueId())).findAny().ifPresent( - server -> server.getServer().getPlayers().stream().filter(player -> isLocked(owner, SteamwarUser.get(player.getUniqueId()))).forEach(member -> { - member.connect(ProxyServer.getInstance().getServerInfo(BungeeCore.LOBBY_SERVER)); - Message.send("BAU_LOCKED_NOALLOWED", p); - }) - ); Message.send("BAU_LOCKED_" + state.name(), owner.getPlayer()); }