@@ -68,19 +68,19 @@ public boolean onCommand(CommandSender sender, Command command, String label, St
6868
6969 Particle .DustOptions dust = new Particle .DustOptions (Color .YELLOW , (float ) EasyGuard .getPlugin ().getConfig ().getDouble ("POINT_SIZE" ));
7070
71- world .spawnParticle (Particle .REDSTONE , locat1 , EasyGuard .getPlugin ().getConfig ().getInt ("MASTER_POINT_PARTICLE_COUNT" ), dust );
71+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "MASTER_POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , locat1 , EasyGuard .getPlugin ().getConfig ().getInt ("MASTER_POINT_PARTICLE_COUNT" ), dust );
7272
73- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat1 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
74- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat2 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
75- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat2 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
76- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat2 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
73+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat1 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
74+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat2 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
75+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat2 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
76+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat2 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
7777
78- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat2 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
79- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat1 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
80- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat1 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
81- world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat1 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
78+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat2 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
79+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat1 .getY (), locat2 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
80+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat2 .getX (), locat1 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
81+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (player .getWorld (), locat1 .getX (), locat1 .getY (), locat1 .getZ ()), EasyGuard .getPlugin ().getConfig ().getInt ("POINT_PARTICLE_COUNT" ), dust );
8282
83- world .spawnParticle (Particle .REDSTONE , locat2 , EasyGuard .getPlugin ().getConfig ().getInt ("MASTER_POINT_PARTICLE_COUNT" ), dust );
83+ if ( EasyGuard . getPlugin (). getConfig (). getInt ( "MASTER_POINT_PARTICLE_COUNT" ) != 0 ) world .spawnParticle (Particle .REDSTONE , locat2 , EasyGuard .getPlugin ().getConfig ().getInt ("MASTER_POINT_PARTICLE_COUNT" ), dust );
8484
8585
8686
@@ -303,7 +303,7 @@ private void drawLineBetweenParticles(Location current, Location target, final d
303303
304304 while (Math .abs (x - target .getX ()) > range || Math .abs (y - target .getY ()) > range || Math .abs (z - target .getZ ()) > range ) {
305305
306- world .spawnParticle (Particle .REDSTONE , new Location (world , x , y , z ), count , dust );
306+ if ( count != 0 ) world .spawnParticle (Particle .REDSTONE , new Location (world , x , y , z ), count , dust );
307307
308308 if (withlineblocks ) {
309309
0 commit comments