Skip to content

Commit

Permalink
Fix nesting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
AlessioDP committed Aug 10, 2023
1 parent 41c714f commit 204262b
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,12 @@ public static void teleportSinglePlayer(PartiesPlugin plugin, PartyPlayerImpl pl
.sendTeleport(velocityUser, targetPlayer);
}
}

player.sendMessage(Messages.ADDCMD_TELEPORT_PLAYER_TELEPORTED, targetPlayer);

IPlayerPostTeleportEvent partiesPostTeleportEvent = plugin.getEventManager().preparePlayerPostTeleportEvent(player, party, server);
plugin.getEventManager().callEvent(partiesPostTeleportEvent);
}

player.sendMessage(Messages.ADDCMD_TELEPORT_PLAYER_TELEPORTED, targetPlayer);

IPlayerPostTeleportEvent partiesPostTeleportEvent = plugin.getEventManager().preparePlayerPostTeleportEvent(player, party, server);
plugin.getEventManager().callEvent(partiesPostTeleportEvent);
}
});
} else
Expand Down

0 comments on commit 204262b

Please sign in to comment.