package info.tregmine.commands;

import org.bukkit.block.Block;
import org.bukkit.Location;
import org.bukkit.Material;
import info.tregmine.Tregmine;
import info.tregmine.api.TregminePlayer;

public class BlockHereCommand extends AbstractCommand
{
    public BlockHereCommand(Tregmine tregmine)
    {
        super(tregmine, "blockhere");
    }

    @Override
    public boolean handlePlayer(TregminePlayer player, String[] args)
    {
        if (!player.getRank().canFill()) {
            return true;
        }

        Location loc = player.getLocation();
        Block block = player.getWorld().getBlockAt(loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ());
        block.setType(Material.DIRT);

        return true;
    }
}

@@ -61,36 +61,8 @@
 ck;%0A
-import org.bukkit.Location;%0A
 impo
@@ -493,147 +493,69 @@
     
-Location loc = player.getLocation();%0A        Block block = player.getWorld().getBlockAt(loc.getBlockX(), loc.getBlockY() - 1, loc.getBlockZ
+Block block = player.getWorld().getBlockAt(player.getLocation
 ());

Revert "Modified /blockghere so it places block beneath player"