From 063d982750201e6bc356d4a3739844c0c4da5bc6 Mon Sep 17 00:00:00 2001 From: bm01 Date: Sun, 6 May 2012 11:05:51 +0200 Subject: [PATCH] Fixed the fix! --- .../com/gmail/nossr50/commands/party/PartyCommand.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 1a454baf1..271800445 100644 --- a/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java +++ b/src/main/java/com/gmail/nossr50/commands/party/PartyCommand.java @@ -159,13 +159,13 @@ public class PartyCommand implements CommandExecutor { return true; case 2: - if (!partyInstance.isParty(args[1])) { - sender.sendMessage(LocaleLoader.getString("Party.InvalidName")); - return true; - } - if (PP.inParty()) { if (args[0].equalsIgnoreCase("password")) { + if (!partyInstance.isParty(args[1])) { + sender.sendMessage(LocaleLoader.getString("Party.InvalidName")); + return true; + } + if (isLeader) { if (!partyInstance.isPartyLocked(partyName)) { partyInstance.lockParty(partyName);