package com.elmakers.mine.bukkit.action;

import com.elmakers.mine.bukkit.api.action.CastContext;
import org.bukkit.configuration.ConfigurationSection;

public abstract class BaseTeleportAction extends BaseSpellAction
{
    protected int verticalSearchDistance;

    @Override
    public void prepare(CastContext context, ConfigurationSection parameters) {
        super.prepare(context, parameters);
        verticalSearchDistance = parameters.getInt("vertical_range", context.getVerticalSearchDistance());
    }
}

@@ -91,16 +91,44 @@
 ontext;%0A
+import org.bukkit.Location;%0A
 import o
@@ -172,16 +172,49 @@
 Section;
+%0Aimport org.bukkit.entity.Entity;
 %0A%0Apublic
@@ -315,16 +315,51 @@
 istance;
+%0A    protected boolean safe = true;
 %0A%0A    @O
@@ -490,16 +490,16 @@
 eters);%0A
-
         
@@ -597,16 +597,246 @@
 nce());%0A
+        safe = parameters.getBoolean(%22safe%22, true);%0A    %7D%0A%0A    protected void teleport(CastContext context, Entity entity, Location targetLocation) %7B%0A        context.teleport(entity, targetLocation, verticalSearchDistance, safe);%0A
     %7D%0A%7D%0A

Move "safe" flag to BaseTeleportAction