Duplicate local variable "attach" error?
<p>I'm trying to debug a section of the code, but there is a "duplicate local variable" error. How would I get around fixing this? I'm not sure what the error is, so I'm asking here.</p>

<pre><code>public JumpPlusPlayer(JumpPlus plugin, Player p) {
    loadPermissions(p, plugin);
    fillConfig(plugin);
  }

  protected void loadPermissions(Player p, JumpPlus plugin) {
      HashSet&lt;PermissionAttachmentInfo&gt; perms = new HashSet&lt;PermissionAttachmentInfo&gt;();
    PermissionAttachment attach;
    if (plugin.usingPEX) {
      PermissionUser user = PermissionsEx.getUser(p);
      String world = p.getWorld().getName();
      attach = new PermissionAttachment(plugin, p);
      for (String perm : user.getPermissions(world)) {
        String expression = user.getMatchingExpression(perm, world);
        perms.add(new PermissionAttachmentInfo(p, perm, attach, user.explainExpression(expression)));
      }
    } else {
      perms = (HashSet&lt;PermissionAttachmentInfo&gt;) p.getEffectivePermissions();
    }

    for (PermissionAttachmentInfo attach : perms) {
      String perm = attach.getPermission();
      if (perm.contains("jumpplus.config.")) {
        String[] aux = perm.split("jumpplus.config.");
        aux = aux[1].split("-");
        if (aux[0].equals("hspeed"))
          this.hSpeed = Double.valueOf(Double.parseDouble(aux[1]));
        else if (aux[0].equals("vspeed"))
          this.vSpeed = Double.valueOf(Double.parseDouble(aux[1]));
        else if (aux[0].equals("maxjumps"))
          this.maxJumps = Integer.valueOf(Integer.parseInt(aux[1]));
        else if (aux[0].equals("maxfreejumps"))
          this.maxFreeJumps = Integer.valueOf(Integer.parseInt(aux[1]));
        else if (aux[0].equals("jumpcost"))
          this.jumpCost = Integer.valueOf(Integer.parseInt(aux[1]));
        else if (aux[0].equals("fallmodifier"))
          this.fallModifier = Integer.valueOf(Integer.parseInt(aux[1]));
        else if (aux[0].equals("particleeffect"))
          this.particleEffect = Boolean.valueOf(Boolean.parseBoolean(aux[1]));
        else if (aux[0].equals("defaultstate"))
          this.enable = Boolean.valueOf(Boolean.parseBoolean(aux[1]));
      }
    }
  }
</code></pre>
