diff --git a/src/main/java/top/penowl/quidproquo/rituals/BlockShiftRitual.java b/src/main/java/top/penowl/quidproquo/rituals/BlockShiftRitual.java index eb425b6..101773e 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/BlockShiftRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/BlockShiftRitual.java @@ -1,5 +1,6 @@ package top.penowl.quidproquo.rituals; +import org.bukkit.ChatColor; import org.bukkit.Location; import org.bukkit.Material; import org.bukkit.block.Block; @@ -42,10 +43,12 @@ public class BlockShiftRitual extends Ritual { Random random = new Random(); Material fromMat = pMat[random.nextInt(65)]; Material toMat = pMat[random.nextInt(65)]; + target.sendMessage(ChatColor.YELLOW + fromMat.toString() + " is " + toMat.toString() + "!"); + Block block = target.getLocation().getBlock(); for(int x = -12; x <= 12; x ++) { for(int y = -12; y <= 12; y ++) { for(int z = -12; z <= 12; z ++) { - Block testBlock = target.getLocation().getBlock().getRelative(x, y, z); + Block testBlock = block.getRelative(x, y, z); if(testBlock.getType() == fromMat) testBlock.setType(toMat); } @@ -53,4 +56,4 @@ public class BlockShiftRitual extends Ritual { } } -} +} \ No newline at end of file diff --git a/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java b/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java index e1b81b6..c4926ba 100644 --- a/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java +++ b/src/main/java/top/penowl/quidproquo/rituals/LightningRitual.java @@ -28,4 +28,4 @@ public class LightningRitual extends Ritual { } } -} +} \ No newline at end of file