From 9874ab204edceeec1cb4afff4a4a0ad5e97075c2 Mon Sep 17 00:00:00 2001 From: Zeanon Date: Tue, 18 May 2021 19:26:32 +0200 Subject: [PATCH] No changes on Persistent Bungeecore nescessary --- pom.xml | 1 + src/de/steamwar/bungeecore/commands/BauCommand.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index dbf2760..859b262 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,7 @@ + clean verify -U src diff --git a/src/de/steamwar/bungeecore/commands/BauCommand.java b/src/de/steamwar/bungeecore/commands/BauCommand.java index 3c0a364..2c79a26 100644 --- a/src/de/steamwar/bungeecore/commands/BauCommand.java +++ b/src/de/steamwar/bungeecore/commands/BauCommand.java @@ -221,7 +221,8 @@ public class BauCommand { ProxiedPlayer toRemove = ProxyServer.getInstance().getPlayer(SteamwarUser.get(target.getMemberID()).getUuid()); if(toRemove != null){ Message.send("BAU_DELMEMBER_DELETED_TARGET", toRemove, p.getName()); - if (Subserver.getServerList().stream().anyMatch(server -> server.onServer(toRemove) && server.getType() == Servertype.BAUSERVER && ((Bauserver) server).getOwner().equals(p.getUniqueId()))) { + Subserver currentServer = Subserver.getSubserver(toRemove.getServer().getInfo()); + if (currentServer.getType() == Servertype.BAUSERVER && ((Bauserver) currentServer).getOwner().equals(p.getUniqueId())) { toRemove.connect(ProxyServer.getInstance().getServerInfo(BungeeCore.LOBBY_SERVER)); } }