TeleportZone onEnter with enabled parameter check.
Contributed by Index.
This commit is contained in:
parent
7447c57a57
commit
9046d15fd4
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user