From bab7a2361d0892e3f90cf6254a9a22add42e8e4a Mon Sep 17 00:00:00 2001 From: ProSavage Date: Sun, 29 Jul 2018 23:53:20 -0500 Subject: [PATCH] 1.13 see chunk particles are now functional --- .../com/massivecraft/factions/cmd/CmdSeeChunk.java | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java b/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java index d066ecf1..12d58871 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdSeeChunk.java @@ -7,10 +7,7 @@ import com.massivecraft.factions.struct.Permission; import com.massivecraft.factions.util.Particles.ParticleEffect; import com.massivecraft.factions.util.VisualizeUtil; import com.massivecraft.factions.zcore.util.TL; -import org.bukkit.Bukkit; -import org.bukkit.Location; -import org.bukkit.Material; -import org.bukkit.World; +import org.bukkit.*; import org.bukkit.entity.Player; import java.util.Arrays; @@ -126,7 +123,13 @@ public class CmdSeeChunk extends FCommand { continue; } if (useParticles) { - this.effect.display(0, 0, 0, 0, 1, loc, player); + if (P.p.useNonPacketParticles) { + player.getWorld().spawnParticle(Particle.REDSTONE, player.getLocation().add(0, -0.35, 0), 0,new Particle.DustOptions(Color.RED,1)); + } else { + this.effect.display(0, 0, 0, 0, 1, loc, player); + } + + } else { Material type = blockY % 5 == 0 ? Material.LEGACY_REDSTONE_LAMP_ON : Material.LEGACY_STAINED_GLASS; VisualizeUtil.addLocation(player, loc, type);