L2Party party = player.getParty();
if (party != null)
{
if (party.isInDimensionalRift() && !party.getDimensionalRift().getRevivedAtWaitingRoom().contains(player))
player.sendMessage("You can't exit party when you are in Dimensional Rift.");
else
{
party.removePartyMember(player);
if (player.isInPartyMatchRoom())