Skip to content

Commit 6981966

Browse files
committed
Bug fix and update version to 2.1
1 parent d5760bf commit 6981966

2 files changed

Lines changed: 12 additions & 12 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>github.aixoio</groupId>
88
<artifactId>EasyGuard</artifactId>
9-
<version>2.0</version>
9+
<version>2.1</version>
1010
<packaging>jar</packaging>
1111

1212
<name>EasyGuard</name>

src/main/java/github/aixoio/easyguard/commands/ClaimBoundsCommand.java

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)