TeleportZone onEnter with enabled parameter check.

Contributed by Index.
This commit is contained in:
MobiusDevelopment 2022-09-01 04:52:31 +00:00
parent 7447c57a57
commit 9046d15fd4
24 changed files with 96 additions and 24 deletions

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override

View File

@ -64,7 +64,10 @@ public class TeleportZone extends ZoneType
@Override
protected void onEnter(Creature creature)
{
creature.teleToLocation(new Location(_x, _y, _z));
if (isEnabled())
{
creature.teleToLocation(new Location(_x, _y, _z));
}
}
@Override