Change Lava position
This commit is contained in:
@@ -18,12 +18,7 @@ public class LavaCmd {
|
|||||||
|
|
||||||
|
|
||||||
public void execute(CommandSender sender, Player target) {
|
public void execute(CommandSender sender, Player target) {
|
||||||
Location lava_loc = new Location(
|
Location lava_loc = target.getLocation();
|
||||||
target.getLocation().getWorld(),
|
|
||||||
target.getLocation().getX(),
|
|
||||||
target.getLocation().getY() - 1,
|
|
||||||
target.getLocation().getZ()
|
|
||||||
);
|
|
||||||
|
|
||||||
Block block = lava_loc.getBlock();
|
Block block = lava_loc.getBlock();
|
||||||
Material old_block = block.getType();
|
Material old_block = block.getType();
|
||||||
|
|||||||
Reference in New Issue
Block a user