From 2911721cba7a50871fd631552c3b8646433a553a Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Mon, 12 Oct 2020 13:17:20 +0200 Subject: [PATCH] Add Fabric Challenge --- src/de/steamwar/bungeecore/listeners/mods/Fabric.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java index d025b50..12ec282 100644 --- a/src/de/steamwar/bungeecore/listeners/mods/Fabric.java +++ b/src/de/steamwar/bungeecore/listeners/mods/Fabric.java @@ -58,7 +58,7 @@ public class Fabric extends BasicListener { public void onServerSwitch(ServerSwitchEvent event) { if(Subserver.getSubserver(event.getPlayer()) != null && Subserver.getSubserver(event.getPlayer()).getType() == Servertype.ARENA - && Storage.fabricPlayers.contains(event.getPlayer())) { + && isFabric(event.getPlayer())) { 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"); }