SteamWar/BungeeCore
Archiviert
13
2

Merge pull request 'Fixing Joining World' (#129) from fixed-fabric into master

Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
YoyoNow 2020-10-12 13:07:17 +02:00
Commit a1cfa157ff

Datei anzeigen

@ -59,8 +59,7 @@ public class Fabric extends BasicListener {
if(Subserver.getSubserver(event.getPlayer()) != null
&& Subserver.getSubserver(event.getPlayer()).getType() == Servertype.ARENA
&& Storage.fabricPlayers.contains(event.getPlayer())) {
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());
event.getPlayer().connect(BungeeCore.get().getProxy().getServerInfo(BungeeCore.LOBBY_SERVER));
BungeeCore.send(event.getPlayer(), BungeeCore.CHAT_PREFIX + "§cDu kannst nicht auf die Arena mit Fabric");
}
}