From 780ecb41d419cd34a71ec8716801f228473e4b41 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 12 Oct 2020 12:58:09 +0200 Subject: [PATCH] Fixed Bugs when coming from Bauserver --- src/de/steamwar/bungeecore/listeners/mods/Fabric.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java index e492c03..f03aa5d 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java +++ b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java @@ -59,7 +59,8 @@ public class Fabric extends BasicListener { if(Subserver.getSubserver(event.getPlayer()) != null && Subserver.getSubserver(event.getPlayer()).getType() == Servertype.ARENA && Storage.fabricPlayers.contains(event.getPlayer())) { - event.getPlayer().connect(event.getFrom()); + if(Subserver.getSubserver(event.getFrom()) != null && Subserver.getSubserver(event.getFrom()).getType() == Servertype.BAUSERVER) event.getPlayer().connect(BungeeCore.get().getProxy().getServerInfo(BungeeCore.LOBBY_SERVER)); + else event.getPlayer().connect(event.getFrom()); BungeeCore.send(event.getPlayer(), BungeeCore.CHAT_PREFIX + "§cDu kannst nicht auf die Arena mit Fabric"); } } -- 2.39.5