Improvements for player notify death in instance.

This commit is contained in:
MobiusDev
2018-04-30 04:43:20 +00:00
parent dca612dbb5
commit d4ac772ecb
9 changed files with 26 additions and 48 deletions

View File

@ -883,12 +883,12 @@ public final class Instance implements IIdentifiable, INamable
// Listeners
// ---------------------------------------------
/**
* This method is called when player dead inside instance.
* This method is called when player dies inside instance.
* @param player
*/
public void onDeath(L2PcInstance player)
{
if (!player.isOnCustomEvent())
if (!player.isOnCustomEvent() && (_template.getEjectTime() > 0))
{
// Send message
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.IF_YOU_ARE_NOT_RESURRECTED_WITHIN_S1_MINUTE_S_YOU_WILL_BE_EXPELLED_FROM_THE_INSTANT_ZONE);