diff options
Diffstat (limited to 'Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java')
-rw-r--r-- | Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java b/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java index 1633fd685..311cb3e13 100644 --- a/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java +++ b/Essentials/src/com/earth2me/essentials/commands/Commandclearinventory.java @@ -5,8 +5,7 @@ import static com.earth2me.essentials.I18n.tl; import com.earth2me.essentials.User; import com.earth2me.essentials.utils.NumberUtil; import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; +import java.util.Collection; import java.util.Locale; import org.bukkit.Server; import org.bukkit.entity.Player; @@ -36,7 +35,7 @@ public class Commandclearinventory extends EssentialsCommand private void parseCommand(Server server, CommandSource sender, String[] args, boolean allowOthers, boolean allowAll) throws Exception { - List<Player> players = new ArrayList<Player>(); + Collection<Player> players = new ArrayList<Player>(); int offset = 0; if (sender.isPlayer()) @@ -48,7 +47,7 @@ public class Commandclearinventory extends EssentialsCommand { sender.sendMessage(tl("inventoryClearingFromAll")); offset = 1; - players = Arrays.asList(server.getOnlinePlayers()); + players = ess.getOnlinePlayers(); } else if (allowOthers && args.length > 0 && args[0].trim().length() > 2) { |