diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandnuke.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandnuke.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java b/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java index 7e6e347c3..e82c46c8d 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandnuke.java @@ -3,8 +3,7 @@ package com.earth2me.essentials.commands; import com.earth2me.essentials.CommandSource; import static com.earth2me.essentials.I18n.tl; import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; +import java.util.Collection; import org.bukkit.Location; import org.bukkit.Server; import org.bukkit.World; @@ -22,7 +21,7 @@ public class Commandnuke extends EssentialsCommand @Override protected void run(final Server server, final CommandSource sender, final String commandLabel, final String[] args) throws NoSuchFieldException, NotEnoughArgumentsException { - List<Player> targets; + Collection<Player> targets; if (args.length > 0) { targets = new ArrayList<Player>(); @@ -35,7 +34,7 @@ public class Commandnuke extends EssentialsCommand } else { - targets = Arrays.asList(server.getOnlinePlayers()); + targets = ess.getOnlinePlayers(); } ess.getTNTListener().enable(); for (Player player : targets) |