Removes an unnecessary portal close statement after teleporting a player through BungeeCord
This commit is contained in:
parent
f0e5cd45a4
commit
945798916b
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user