Partial sync latest Test changes to HighFive.
This commit is contained in:
@ -40,7 +40,7 @@ import com.l2jmobius.gameserver.datatables.SpawnTable;
|
||||
import com.l2jmobius.gameserver.enums.ChatType;
|
||||
import com.l2jmobius.gameserver.model.L2Clan;
|
||||
import com.l2jmobius.gameserver.model.L2Party;
|
||||
import com.l2jmobius.gameserver.model.L2Party.messageType;
|
||||
import com.l2jmobius.gameserver.model.L2Party.MessageType;
|
||||
import com.l2jmobius.gameserver.model.L2Spawn;
|
||||
import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
@ -1423,7 +1423,7 @@ public class SevenSignsFestival implements SpawnListener
|
||||
if ((festivalParty != null) && (festivalParty.getMemberCount() < Config.ALT_FESTIVAL_MIN_PLAYER))
|
||||
{
|
||||
updateParticipants(player, null); // under minimum count
|
||||
festivalParty.removePartyMember(player, messageType.Expelled);
|
||||
festivalParty.removePartyMember(player, MessageType.EXPELLED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -29,7 +29,7 @@ import com.l2jmobius.gameserver.ThreadPoolManager;
|
||||
import com.l2jmobius.gameserver.data.xml.impl.TransformData;
|
||||
import com.l2jmobius.gameserver.datatables.SkillData;
|
||||
import com.l2jmobius.gameserver.instancemanager.CursedWeaponsManager;
|
||||
import com.l2jmobius.gameserver.model.L2Party.messageType;
|
||||
import com.l2jmobius.gameserver.model.L2Party.MessageType;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Attackable;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
@ -426,7 +426,7 @@ public class CursedWeapon implements INamable
|
||||
_player.setPkKills(0);
|
||||
if (_player.isInParty())
|
||||
{
|
||||
_player.getParty().removePartyMember(_player, messageType.Expelled);
|
||||
_player.getParty().removePartyMember(_player, MessageType.EXPELLED);
|
||||
}
|
||||
|
||||
// Disable All Skills
|
||||
|
@ -97,12 +97,12 @@ public class L2Party extends AbstractPlayerGroup
|
||||
/**
|
||||
* The message type send to the party members.
|
||||
*/
|
||||
public enum messageType
|
||||
public enum MessageType
|
||||
{
|
||||
Expelled,
|
||||
Left,
|
||||
None,
|
||||
Disconnected
|
||||
EXPELLED,
|
||||
LEFT,
|
||||
NONE,
|
||||
DISCONNECTED
|
||||
}
|
||||
|
||||
/**
|
||||
@ -377,9 +377,9 @@ public class L2Party extends AbstractPlayerGroup
|
||||
/**
|
||||
* Removes a party member using its name.
|
||||
* @param name player the player to be removed from the party.
|
||||
* @param type the message type {@link messageType}.
|
||||
* @param type the message type {@link MessageType}.
|
||||
*/
|
||||
public void removePartyMember(String name, messageType type)
|
||||
public void removePartyMember(String name, MessageType type)
|
||||
{
|
||||
removePartyMember(getPlayerByName(name), type);
|
||||
}
|
||||
@ -387,16 +387,16 @@ public class L2Party extends AbstractPlayerGroup
|
||||
/**
|
||||
* Removes a party member instance.
|
||||
* @param player the player to be removed from the party.
|
||||
* @param type the message type {@link messageType}.
|
||||
* @param type the message type {@link MessageType}.
|
||||
*/
|
||||
public void removePartyMember(L2PcInstance player, messageType type)
|
||||
public void removePartyMember(L2PcInstance player, MessageType type)
|
||||
{
|
||||
if (getMembers().contains(player))
|
||||
{
|
||||
final boolean isLeader = isLeader(player);
|
||||
if (!_disbanding)
|
||||
{
|
||||
if ((getMembers().size() == 2) || (isLeader && !Config.ALT_LEAVE_PARTY_LEADER && (type != messageType.Disconnected)))
|
||||
if ((getMembers().size() == 2) || (isLeader && !Config.ALT_LEAVE_PARTY_LEADER && (type != MessageType.DISCONNECTED)))
|
||||
{
|
||||
disbandParty();
|
||||
return;
|
||||
@ -434,14 +434,14 @@ public class L2Party extends AbstractPlayerGroup
|
||||
}
|
||||
|
||||
SystemMessage msg;
|
||||
if (type == messageType.Expelled)
|
||||
if (type == MessageType.EXPELLED)
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_HAVE_BEEN_EXPELLED_FROM_THE_PARTY);
|
||||
msg = SystemMessage.getSystemMessage(SystemMessageId.C1_WAS_EXPELLED_FROM_THE_PARTY);
|
||||
msg.addString(player.getName());
|
||||
broadcastPacket(msg);
|
||||
}
|
||||
else if ((type == messageType.Left) || (type == messageType.Disconnected))
|
||||
else if ((type == MessageType.LEFT) || (type == MessageType.DISCONNECTED))
|
||||
{
|
||||
player.sendPacket(SystemMessageId.YOU_HAVE_WITHDRAWN_FROM_THE_PARTY);
|
||||
msg = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_LEFT_THE_PARTY);
|
||||
@ -468,7 +468,7 @@ public class L2Party extends AbstractPlayerGroup
|
||||
{
|
||||
player.sendPacket(new ExCloseMPCC());
|
||||
}
|
||||
if (isLeader && (getMembers().size() > 1) && (Config.ALT_LEAVE_PARTY_LEADER || (type == messageType.Disconnected)))
|
||||
if (isLeader && (getMembers().size() > 1) && (Config.ALT_LEAVE_PARTY_LEADER || (type == MessageType.DISCONNECTED)))
|
||||
{
|
||||
msg = SystemMessage.getSystemMessage(SystemMessageId.C1_HAS_BECOME_THE_PARTY_LEADER);
|
||||
msg.addString(getLeader().getName());
|
||||
@ -529,7 +529,7 @@ public class L2Party extends AbstractPlayerGroup
|
||||
{
|
||||
if (member != null)
|
||||
{
|
||||
removePartyMember(member, messageType.None);
|
||||
removePartyMember(member, MessageType.NONE);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ import com.l2jmobius.gameserver.model.L2EnchantSkillLearn;
|
||||
import com.l2jmobius.gameserver.model.L2ManufactureItem;
|
||||
import com.l2jmobius.gameserver.model.L2Object;
|
||||
import com.l2jmobius.gameserver.model.L2Party;
|
||||
import com.l2jmobius.gameserver.model.L2Party.messageType;
|
||||
import com.l2jmobius.gameserver.model.L2Party.MessageType;
|
||||
import com.l2jmobius.gameserver.model.L2PetLevelData;
|
||||
import com.l2jmobius.gameserver.model.L2PremiumItem;
|
||||
import com.l2jmobius.gameserver.model.L2Radar;
|
||||
@ -6460,7 +6460,7 @@ public final class L2PcInstance extends L2Playable
|
||||
{
|
||||
if (isInParty())
|
||||
{
|
||||
_party.removePartyMember(this, messageType.Disconnected);
|
||||
_party.removePartyMember(this, MessageType.DISCONNECTED);
|
||||
_party = null;
|
||||
}
|
||||
}
|
||||
@ -9412,7 +9412,7 @@ public final class L2PcInstance extends L2Playable
|
||||
|
||||
if (getParty() != null)
|
||||
{
|
||||
getParty().removePartyMember(this, messageType.Expelled);
|
||||
getParty().removePartyMember(this, MessageType.EXPELLED);
|
||||
}
|
||||
|
||||
_olympiadGameId = id;
|
||||
|
@ -26,7 +26,7 @@ import com.l2jmobius.gameserver.instancemanager.AntiFeedManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.CastleManager;
|
||||
import com.l2jmobius.gameserver.instancemanager.FortManager;
|
||||
import com.l2jmobius.gameserver.model.L2Party;
|
||||
import com.l2jmobius.gameserver.model.L2Party.messageType;
|
||||
import com.l2jmobius.gameserver.model.L2Party.MessageType;
|
||||
import com.l2jmobius.gameserver.model.Location;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Summon;
|
||||
@ -256,7 +256,7 @@ public abstract class AbstractOlympiadGame
|
||||
final L2Party party = player.getParty();
|
||||
if (party != null)
|
||||
{
|
||||
party.removePartyMember(player, messageType.Expelled);
|
||||
party.removePartyMember(player, MessageType.EXPELLED);
|
||||
}
|
||||
}
|
||||
// Remove Agathion
|
||||
|
@ -16,7 +16,7 @@
|
||||
*/
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.gameserver.model.L2Party.messageType;
|
||||
import com.l2jmobius.gameserver.model.L2Party.MessageType;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
|
||||
/**
|
||||
@ -52,7 +52,7 @@ public final class RequestOustPartyMember extends L2GameClientPacket
|
||||
}
|
||||
else
|
||||
{
|
||||
activeChar.getParty().removePartyMember(_name, messageType.Expelled);
|
||||
activeChar.getParty().removePartyMember(_name, MessageType.EXPELLED);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
package com.l2jmobius.gameserver.network.clientpackets;
|
||||
|
||||
import com.l2jmobius.gameserver.model.L2Party;
|
||||
import com.l2jmobius.gameserver.model.L2Party.messageType;
|
||||
import com.l2jmobius.gameserver.model.L2Party.MessageType;
|
||||
import com.l2jmobius.gameserver.model.PartyMatchRoom;
|
||||
import com.l2jmobius.gameserver.model.PartyMatchRoomList;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
@ -58,7 +58,7 @@ public final class RequestWithDrawalParty extends L2GameClientPacket
|
||||
}
|
||||
else
|
||||
{
|
||||
party.removePartyMember(player, messageType.Left);
|
||||
party.removePartyMember(player, MessageType.LEFT);
|
||||
|
||||
if (player.isInPartyMatchRoom())
|
||||
{
|
||||
|
Reference in New Issue
Block a user