Program: 25880
Project: 25880
Buggy source:
@SuppressWarnings("String_Node_Str") public int runMovingChecks(Player p,Location to,Location from,double yd,double xs,double zs,MoveData movedata,boolean up,boolean inwater,boolean onladder,XYZ lg){
  if ((p.isSneaking() || p.isBlocking()) && p.isSprinting()) {
    if (p.isBlocking() && p.isSprinting()) {
      if ((System.currentTimeMillis() - movedata.blocktime) > 150) {
        int id=this.vars.raiseViolationLevel(CheckType.IMPOSSIBLE,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.IMPOSSIBLE,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.impossiblemovemes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
  }
  if (yd != 0) {
    if (up && onladder) {
      if (yd > ((p.getAllowFlight() || (to.getY() % 1) <= 0.4) ? 0.424 : 0.118)) {
        int id=this.vars.raiseViolationLevel(CheckType.VERTICAL_SPEED,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.VERTICAL_SPEED,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.verticalspeedmes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
    if (up) {
      if (yd > this.getMaxVertical(p,inwater,up)) {
        int id=this.vars.raiseViolationLevel(CheckType.VERTICAL_SPEED,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.VERTICAL_SPEED,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.verticalspeedmes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
  }
  if (p.isOnGround() || p.isInsideVehicle() || inwater|| (p.isFlying())|| onladder) {
    this.vars.lastGround.put(p.getName(),new XYZ(from));
  }
 else {
    if (!p.getAllowFlight() && !inwater && !onladder) {
      if (up) {
        double ydis=Math.abs(lg.y - to.getY());
        if (ydis > this.getMaxHight(p,movedata)) {
          int id=this.vars.raiseViolationLevel(CheckType.FLY,p);
          ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.FLY,p);
          Bukkit.getServer().getPluginManager().callEvent(vte);
          if (!vte.isCancelled()) {
            if (id != 0) {
              String message=Setting.flymes;
              message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
              message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
              Utils.messageAdmins(message);
            }
            p.setFlying(false);
            p.setAllowFlight(false);
            return 3;
          }
        }
      }
    }
  }
  if ((System.currentTimeMillis() - movedata.lastmounting) > 200) {
    double ydis=Math.abs(lg.y - to.getY());
    if (xs > 0 || zs > 0) {
      boolean wg=movedata.wasonground;
      double mxs=((p.isOnGround()) ? p.getWalkSpeed() : ((p.getAllowFlight() ? p.getFlySpeed() : p.getWalkSpeed())));
      boolean csneak=p.isSneaking();
      if (csneak) {
        if (!movedata.wassneaking) {
          long diff=(System.currentTimeMillis() - movedata.sneaktime);
          if (diff < 501) {
            csneak=false;
          }
        }
      }
      boolean csprint=p.isSprinting();
      if (!csprint) {
        if ((System.currentTimeMillis() - movedata.sprinttime) < 1001) {
          csprint=true;
        }
      }
      boolean cfly=p.isFlying();
      if (!cfly) {
        if ((System.currentTimeMillis() - movedata.flytime) < 2001) {
          cfly=true;
        }
      }
      if (xs > zs) {
        p.sendMessage(xs + "String_Node_Str");
      }
 else {
        p.sendMessage("String_Node_Str" + zs);
      }
      if (cfly) {
      }
 else       if (csprint) {
      }
 else       if (csneak) {
        mxs=(mxs - (p.getWalkSpeed() - (p.getWalkSpeed() / 3))) + 0.1;
      }
 else {
        mxs=mxs + 0.1;
      }
      if (p.hasPotionEffect(PotionEffectType.SPEED)) {
        int level=Utils.getPotionEffectLevel(p,PotionEffectType.SPEED);
        if (level > 0) {
          mxs=(0.0812) * ((0.5 * level) + 1);
        }
      }
      if (xs > mxs || zs > mxs) {
        int id=this.vars.raiseViolationLevel(CheckType.HORIZONTAL_SPEED,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.HORIZONTAL_SPEED,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (Setting.debug) {
            p.sendMessage("String_Node_Str" + xs + "String_Node_Str"+ zs+ "String_Node_Str"+ mxs+ "String_Node_Str"+ p.isOnGround()+ "String_Node_Str"+ movedata.wasonground+ "String_Node_Str"+ (System.currentTimeMillis() - movedata.groundtime));
          }
          if (id != 0) {
            String message=Setting.horizontalspeedmes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
    if (!p.isOnGround() && !p.getAllowFlight()) {
      double mdis=this.getXZDistance(to.getX(),lg.x,to.getZ(),lg.z);
      if (mdis > this.getMaxMD(inwater,p.isOnGround(),p,ydis,movedata)) {
        int id=this.vars.raiseViolationLevel(CheckType.GLIDE,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.GLIDE,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.glidemes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
  }
  if (!p.isFlying()) {
    if (!inwater && !p.getAllowFlight() && p.isOnGround()) {
      Material m=null;
      if (to.getBlockX() != from.getBlockX() || to.getBlockZ() != from.getBlockZ()) {
        int by=from.getBlockY() + 1;
        int oy=by;
        boolean con=true;
        while (con) {
          by--;
          m=from.getBlock().getRelative(0,((oy - by) * -1) + 1,0).getType();
          if (m.isSolid()) {
            con=false;
            break;
          }
          if (by < 0) {
            con=false;
            break;
          }
        }
        int dis=(oy - by);
        if (dis > 2) {
          int id=this.vars.raiseViolationLevel(CheckType.FLY,p);
          ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.FLY,p);
          Bukkit.getServer().getPluginManager().callEvent(vte);
          if (!vte.isCancelled()) {
            if (id != 0) {
              String message=Setting.flymes;
              message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
              message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
              Utils.messageAdmins(message);
            }
            return 1;
          }
        }
      }
    }
    if (!p.getAllowFlight()) {
      if (to.getBlockY() != from.getBlockY()) {
        if (up && p.isOnGround() && !inwater) {
          if (p.getVelocity().getY() < 0) {
            Material m=from.getBlock().getType();
            if (m != Material.CHEST && m != Material.TRAPPED_CHEST) {
              int id=this.vars.raiseViolationLevel(CheckType.NOFALL,p);
              ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.NOFALL,p);
              Bukkit.getServer().getPluginManager().callEvent(vte);
              if (!vte.isCancelled()) {
                if (id != 0) {
                  String message=Setting.nofallmessage;
                  message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
                  message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
                  Utils.messageAdmins(message);
                }
                return 4;
              }
            }
          }
        }
      }
    }
    if (!up && yd > 0.25 && p.isOnGround()) {
      int id=this.vars.raiseViolationLevel(CheckType.NOFALL,p);
      ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.NOFALL,p);
      Bukkit.getServer().getPluginManager().callEvent(vte);
      if (!vte.isCancelled()) {
        if (id != 0) {
          String message=Setting.nofallmessage;
          message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
          message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
          Utils.messageAdmins(message);
        }
        return 4;
      }
    }
  }
  if (to.getX() != from.getX() || to.getY() != from.getY() || to.getZ() != from.getZ()) {
    if ((System.currentTimeMillis() - movedata.getTimeStart()) > 500) {
      int max=0;
      max=Math.round((Utils.getPing(p) / 100));
      if (max < 0) {
        max=0;
      }
      max=max + Setting.maxpacket;
      if (movedata.getAmount() > max) {
        int id=this.vars.raiseViolationLevel(CheckType.TIMER,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.TIMER,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (movedata.getAmount() > 50) {
            p.kickPlayer("String_Node_Str");
          }
 else {
            p.teleport(movedata.lastloc.toLocation(to.getPitch(),to.getYaw()),TeleportCause.UNKNOWN);
          }
          if (id != 0) {
            String message=Setting.timermes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            message=message.replaceAll("String_Node_Str",movedata.getAmount() + "String_Node_Str");
            message=message.replaceAll("String_Node_Str",max + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          movedata.reset(movedata.lastloc);
        }
      }
 else {
        movedata.reset(new XYZ(from));
      }
    }
 else {
      movedata.setAmount(movedata.getAmount() + 1);
    }
    this.vars.setMoveData(p.getName(),movedata);
  }
  return 0;
}

Fixed version (ground truth):
@SuppressWarnings("String_Node_Str") public int runMovingChecks(Player p,Location to,Location from,double yd,double xs,double zs,MoveData movedata,boolean up,boolean inwater,boolean onladder,XYZ lg){
  boolean jumped=(movedata.wasonground != p.isOnGround());
  if (!jumped) {
    if ((System.currentTimeMillis() - movedata.groundtime) < 600) {
      jumped=true;
    }
  }
  if ((p.isSneaking() || p.isBlocking()) && p.isSprinting()) {
    if (p.isBlocking() && p.isSprinting()) {
      if ((System.currentTimeMillis() - movedata.blocktime) > 150) {
        int id=this.vars.raiseViolationLevel(CheckType.IMPOSSIBLE,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.IMPOSSIBLE,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.impossiblemovemes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
  }
  if (yd != 0) {
    if (up && onladder) {
      if (yd > ((p.getAllowFlight() || (to.getY() % 1) <= 0.4) ? 0.424 : 0.118)) {
        int id=this.vars.raiseViolationLevel(CheckType.VERTICAL_SPEED,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.VERTICAL_SPEED,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.verticalspeedmes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
    if (up) {
      if (yd > this.getMaxVertical(p,inwater,up)) {
        int id=this.vars.raiseViolationLevel(CheckType.VERTICAL_SPEED,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.VERTICAL_SPEED,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.verticalspeedmes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
  }
  if (p.isOnGround() || p.isInsideVehicle() || inwater|| (p.isFlying())|| onladder) {
    this.vars.lastGround.put(p.getName(),new XYZ(from));
  }
 else {
    if (!p.getAllowFlight() && !inwater && !onladder) {
      if (up) {
        double ydis=Math.abs(lg.y - to.getY());
        if (ydis > this.getMaxHight(p,movedata)) {
          int id=this.vars.raiseViolationLevel(CheckType.FLY,p);
          ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.FLY,p);
          Bukkit.getServer().getPluginManager().callEvent(vte);
          if (!vte.isCancelled()) {
            if (id != 0) {
              String message=Setting.flymes;
              message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
              message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
              Utils.messageAdmins(message);
            }
            p.setFlying(false);
            p.setAllowFlight(false);
            return 3;
          }
        }
      }
    }
  }
  if ((System.currentTimeMillis() - movedata.lastmounting) > 200) {
    double ydis=Math.abs(lg.y - to.getY());
    if (xs > 0 || zs > 0) {
      double mxs=0;
      boolean csneak=p.isSneaking();
      if (csneak) {
        if (!movedata.wassneaking) {
          long diff=(System.currentTimeMillis() - movedata.sneaktime);
          if (diff < 501) {
            csneak=false;
          }
        }
      }
      boolean csprint=p.isSprinting();
      if (!csprint) {
        if ((System.currentTimeMillis() - movedata.sprinttime) < 1001) {
          csprint=true;
        }
      }
      boolean cfly=p.isFlying();
      if (!cfly) {
        if ((System.currentTimeMillis() - movedata.flytime) < 2001) {
          cfly=true;
        }
      }
      if (cfly) {
        mxs=(p.getFlySpeed() * 5.457);
      }
 else       if (csprint) {
        if (jumped) {
          mxs=(p.getWalkSpeed() / 0.3);
        }
 else {
          mxs=(p.getWalkSpeed() / 0.71);
        }
      }
 else       if (csneak) {
        if (jumped) {
          mxs=(p.getWalkSpeed() / 2.1);
        }
 else {
          mxs=(p.getWalkSpeed() / 2.9);
        }
      }
 else {
        if (jumped) {
          mxs=(p.getWalkSpeed() / 0.65);
        }
 else {
          mxs=(p.getWalkSpeed() / 0.9);
        }
      }
      if (p.hasPotionEffect(PotionEffectType.SPEED)) {
        int level=Utils.getPotionEffectLevel(p,PotionEffectType.SPEED);
        if (level > 0) {
          mxs=(mxs * (((level * 20) * 0.011) + 1));
        }
      }
      if (xs > mxs || zs > mxs) {
        int id=this.vars.raiseViolationLevel(CheckType.HORIZONTAL_SPEED,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.HORIZONTAL_SPEED,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (Setting.debug) {
            p.sendMessage("String_Node_Str" + xs + "String_Node_Str"+ zs+ "String_Node_Str"+ mxs+ "String_Node_Str"+ p.isOnGround()+ "String_Node_Str"+ movedata.wasonground+ "String_Node_Str"+ (System.currentTimeMillis() - movedata.groundtime));
          }
          if (id != 0) {
            String message=Setting.horizontalspeedmes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
    if (!p.isOnGround() && !p.getAllowFlight()) {
      double mdis=this.getXZDistance(to.getX(),lg.x,to.getZ(),lg.z);
      if (mdis > this.getMaxMD(inwater,p.isOnGround(),p,ydis,movedata)) {
        int id=this.vars.raiseViolationLevel(CheckType.GLIDE,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.GLIDE,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (id != 0) {
            String message=Setting.glidemes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          return 1;
        }
      }
    }
  }
  if (!p.isFlying()) {
    if (!inwater && !p.getAllowFlight() && p.isOnGround()) {
      Material m=null;
      if (to.getBlockX() != from.getBlockX() || to.getBlockZ() != from.getBlockZ()) {
        int by=from.getBlockY() + 1;
        int oy=by;
        boolean con=true;
        while (con) {
          by--;
          m=from.getBlock().getRelative(0,((oy - by) * -1) + 1,0).getType();
          if (m.isSolid()) {
            con=false;
            break;
          }
          if (by < 0) {
            con=false;
            break;
          }
        }
        int dis=(oy - by);
        if (dis > 2) {
          int id=this.vars.raiseViolationLevel(CheckType.FLY,p);
          ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.FLY,p);
          Bukkit.getServer().getPluginManager().callEvent(vte);
          if (!vte.isCancelled()) {
            if (id != 0) {
              String message=Setting.flymes;
              message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
              message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
              Utils.messageAdmins(message);
            }
            return 1;
          }
        }
      }
    }
    if (!p.getAllowFlight()) {
      if (to.getBlockY() != from.getBlockY()) {
        if (up && p.isOnGround() && !inwater) {
          if (p.getVelocity().getY() < 0) {
            Material m=from.getBlock().getType();
            if (m != Material.CHEST && m != Material.TRAPPED_CHEST) {
              int id=this.vars.raiseViolationLevel(CheckType.NOFALL,p);
              ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.NOFALL,p);
              Bukkit.getServer().getPluginManager().callEvent(vte);
              if (!vte.isCancelled()) {
                if (id != 0) {
                  String message=Setting.nofallmessage;
                  message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
                  message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
                  Utils.messageAdmins(message);
                }
                return 4;
              }
            }
          }
        }
      }
    }
    if (!up && yd > 0.25 && p.isOnGround()) {
      int id=this.vars.raiseViolationLevel(CheckType.NOFALL,p);
      ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.NOFALL,p);
      Bukkit.getServer().getPluginManager().callEvent(vte);
      if (!vte.isCancelled()) {
        if (id != 0) {
          String message=Setting.nofallmessage;
          message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
          message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
          Utils.messageAdmins(message);
        }
        return 4;
      }
    }
  }
  if (to.getX() != from.getX() || to.getY() != from.getY() || to.getZ() != from.getZ()) {
    if ((System.currentTimeMillis() - movedata.getTimeStart()) > 500) {
      int max=0;
      max=Math.round((Utils.getPing(p) / 100));
      if (max < 0) {
        max=0;
      }
      max=max + Setting.maxpacket;
      if (movedata.getAmount() > max) {
        int id=this.vars.raiseViolationLevel(CheckType.TIMER,p);
        ViolationTriggeredEvent vte=new ViolationTriggeredEvent(id,CheckType.TIMER,p);
        Bukkit.getServer().getPluginManager().callEvent(vte);
        if (!vte.isCancelled()) {
          if (movedata.getAmount() > 50) {
            p.kickPlayer("String_Node_Str");
          }
 else {
            p.teleport(movedata.lastloc.toLocation(to.getPitch(),to.getYaw()),TeleportCause.UNKNOWN);
          }
          if (id != 0) {
            String message=Setting.timermes;
            message=message.replaceAll("String_Node_Str",ChatColor.YELLOW + "String_Node_Str" + p.getName()+ "String_Node_Str"+ ChatColor.GREEN);
            message=message.replaceAll("String_Node_Str",id + "String_Node_Str");
            message=message.replaceAll("String_Node_Str",movedata.getAmount() + "String_Node_Str");
            message=message.replaceAll("String_Node_Str",max + "String_Node_Str");
            Utils.messageAdmins(message);
          }
          movedata.reset(movedata.lastloc);
        }
      }
 else {
        movedata.reset(new XYZ(from));
      }
    }
 else {
      movedata.setAmount(movedata.getAmount() + 1);
    }
    this.vars.setMoveData(p.getName(),movedata);
  }
  return 0;
}