Merge pull request 'Fixing Joining World' (#129) from fixed-fabric into master
Reviewed-by: YoyoNow <jwsteam@nidido.de>
Dieser Commit ist enthalten in:
Commit
a1cfa157ff
@ -59,8 +59,7 @@ public class Fabric extends BasicListener {
|
|||||||
if(Subserver.getSubserver(event.getPlayer()) != null
|
if(Subserver.getSubserver(event.getPlayer()) != null
|
||||||
&& Subserver.getSubserver(event.getPlayer()).getType() == Servertype.ARENA
|
&& Subserver.getSubserver(event.getPlayer()).getType() == Servertype.ARENA
|
||||||
&& Storage.fabricPlayers.contains(event.getPlayer())) {
|
&& 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));
|
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");
|
BungeeCore.send(event.getPlayer(), BungeeCore.CHAT_PREFIX + "§cDu kannst nicht auf die Arena mit Fabric");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren