From fc5dda78f53a5ce71101506deb9e1c0e1b1493e7 Mon Sep 17 00:00:00 2001 From: GJ Date: Wed, 30 Jan 2013 18:49:14 -0500 Subject: [PATCH] Fixed javadoc issue, also fixed bug where we were trying to compare the Player and a string, rather than the player's name. --- src/main/java/com/gmail/nossr50/party/PartyManager.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/party/PartyManager.java b/src/main/java/com/gmail/nossr50/party/PartyManager.java index 47e634252..4f9876201 100644 --- a/src/main/java/com/gmail/nossr50/party/PartyManager.java +++ b/src/main/java/com/gmail/nossr50/party/PartyManager.java @@ -301,7 +301,6 @@ public final class PartyManager { * Check if a player can join a party * * @param player The player trying to join a party - * @param playerProfile The profile of the player * @param party The party * @param password The password provided by the player * @return true if the player can join the party @@ -391,7 +390,7 @@ public final class PartyManager { if (member.getName().equals(playerName)) { member.sendMessage(LocaleLoader.getString("Party.Owner.Player")); } - else if (member.equals(leaderName)) { + else if (member.getName().equals(leaderName)) { member.sendMessage(LocaleLoader.getString("Party.Owner.NotLeader")); } else {