Removes an unnecessary portal close statement after teleporting a player through BungeeCord

This commit is contained in:
Kristian Knarvik 2021-10-29 15:07:45 +02:00
parent f0e5cd45a4
commit 945798916b

View File

@ -331,15 +331,13 @@ public class PlayerEventListener implements Listener {
return false;
}
// Connect player to new server
//Send the connect-message to make the player change server
if (!BungeeHelper.changeServer(player, entrancePortal)) {
Stargate.debug("bungeeTeleport", "Unable to change server");
return false;
}
// Close portal if required (Should never be)
Stargate.debug("bungeeTeleport", "Teleported player to another server");
entrancePortal.getPortalOpener().closePortal(false);
return true;
}