From 5bff6d63f23b29db0be5a5c02c1a44aa91cd8756 Mon Sep 17 00:00:00 2001 From: bm01 Date: Mon, 11 Jun 2012 08:26:48 +0200 Subject: [PATCH] Removed unneeded reference --- .../com/gmail/nossr50/commands/party/PartyCommand.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java b/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java index cdd8380b7..15fcff382 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java @@ -1,7 +1,5 @@ package com.gmail.nossr50.commands.party; -import java.util.List; - import org.bukkit.ChatColor; import org.bukkit.Server; import org.bukkit.command.Command; @@ -177,9 +175,7 @@ public class PartyCommand implements CommandExecutor { } else if (args[0].equalsIgnoreCase("kick")) { if (party.getLeader().equals(playerName)) { - List members = party.getMembers(); - - if (!members.contains(args[1])) { + if (!party.getMembers().contains(args[1])) { player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]})); return true; } @@ -202,9 +198,7 @@ public class PartyCommand implements CommandExecutor { } else if (args[0].equalsIgnoreCase("owner")) { if (party.getLeader().equals(playerName)) { - List members = party.getMembers(); - - if (!members.contains(args[1])) { + if (!party.getMembers().contains(args[1])) { player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]})); return true; }