Removed unneeded reference

This commit is contained in:
bm01 2012-06-11 08:26:48 +02:00
parent 5fe227b874
commit 5bff6d63f2

View File

@ -1,7 +1,5 @@
package com.gmail.nossr50.commands.party; package com.gmail.nossr50.commands.party;
import java.util.List;
import org.bukkit.ChatColor; import org.bukkit.ChatColor;
import org.bukkit.Server; import org.bukkit.Server;
import org.bukkit.command.Command; import org.bukkit.command.Command;
@ -177,9 +175,7 @@ public class PartyCommand implements CommandExecutor {
} }
else if (args[0].equalsIgnoreCase("kick")) { else if (args[0].equalsIgnoreCase("kick")) {
if (party.getLeader().equals(playerName)) { if (party.getLeader().equals(playerName)) {
List<String> members = party.getMembers(); if (!party.getMembers().contains(args[1])) {
if (!members.contains(args[1])) {
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]})); player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]}));
return true; return true;
} }
@ -202,9 +198,7 @@ public class PartyCommand implements CommandExecutor {
} }
else if (args[0].equalsIgnoreCase("owner")) { else if (args[0].equalsIgnoreCase("owner")) {
if (party.getLeader().equals(playerName)) { if (party.getLeader().equals(playerName)) {
List<String> members = party.getMembers(); if (!party.getMembers().contains(args[1])) {
if (!members.contains(args[1])) {
player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]})); player.sendMessage(LocaleLoader.getString("Party.NotInYourParty", new Object[] {args[1]}));
return true; return true;
} }