Fix /doom breaking blocks
This commit is contained in:
Kell 2016-05-14 14:47:52 -04:00 committed by Jerom van der Sar
parent aca3398d21
commit 1a16f06ac6

View File

@ -72,7 +72,7 @@ public class Command_doom extends FreedomCommand
player.setFireTicks(10000); player.setFireTicks(10000);
// Generate explosion // Generate explosion
player.getWorld().createExplosion(player.getLocation(), 4F); player.getWorld().createExplosion(player.getLocation(), 0F, false);
// Shoot the player in the sky // Shoot the player in the sky
player.setVelocity(player.getVelocity().clone().add(new Vector(0, 20, 0))); player.setVelocity(player.getVelocity().clone().add(new Vector(0, 20, 0)));
@ -99,7 +99,7 @@ public class Command_doom extends FreedomCommand
FUtil.adminAction(sender.getName(), "Banning " + player.getName() + ", IP: " + ip, true); FUtil.adminAction(sender.getName(), "Banning " + player.getName() + ", IP: " + ip, true);
// generate explosion // generate explosion
player.getWorld().createExplosion(player.getLocation(), 4F); player.getWorld().createExplosion(player.getLocation(), 0F, false);
// kick player // kick player
player.kickPlayer(ChatColor.RED + "FUCKOFF, and get your shit together!"); player.kickPlayer(ChatColor.RED + "FUCKOFF, and get your shit together!");