diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandnuke.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnuke.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java b/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java index 9aa4f8ac0..df497a352 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java @@ -22,7 +22,7 @@ public class Commandnuke extends EssentialsCommand protected void run(final Server server, final CommandSender sender, final String commandLabel, final String[] args) throws NoSuchFieldException, NotEnoughArgumentsException { List<Player> targets; - if (args.length > 0) + if (args.length > 0) { targets = new ArrayList<Player>(); int pos = 0; @@ -34,14 +34,15 @@ public class Commandnuke extends EssentialsCommand } else { - targets = Arrays.asList(server.getOnlinePlayers()); + targets = Arrays.asList(server.getOnlinePlayers()); } ess.getTNTListener().enable(); for (Player player : targets) { - if (player == null) { + if (player == null) + { continue; - } + } player.sendMessage("May death rain upon them"); final Location loc = player.getLocation(); final World world = loc.getWorld(); |