SteamWar/BungeeCore
Archiviert
13
2

Don't kick players
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-09-13 22:34:59 +02:00
Ursprung 85c5201c82
Commit f9f0f83779

Datei anzeigen

@ -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());
}