Addition of Dimensional Warp instance.

Contributed by gigilo1968.
This commit is contained in:
MobiusDev
2019-01-10 20:39:52 +00:00
parent fdf51df12a
commit 6c38b88b42
125 changed files with 28422 additions and 164 deletions

View File

@ -843,7 +843,7 @@ public final class Instance implements IIdentifiable, INamable
}
_allowed.forEach(player ->
{
if ((player != null))
if (player != null)
{
InstanceManager.getInstance().setReenterPenalty(player.getObjectId(), getTemplateId(), time);
if (player.isOnline())
@ -1147,6 +1147,11 @@ public final class Instance implements IIdentifiable, INamable
*/
private void sendWorldDestroyMessage(int delay)
{
// Dimensional wrap does not show timer after 5 minutes.
if (delay > 5)
{
return;
}
final SystemMessage sm = SystemMessage.getSystemMessage(SystemMessageId.THIS_INSTANT_ZONE_WILL_BE_TERMINATED_IN_S1_MINUTE_S_YOU_WILL_BE_FORCED_OUT_OF_THE_DUNGEON_WHEN_THE_TIME_EXPIRES);
sm.addInt(delay);
broadcastPacket(sm);