Fixed javadoc issue, also fixed bug where we were trying to compare the Player and a string, rather than the player's name.

This commit is contained in:
GJ 2013-01-30 18:49:14 -05:00
parent d6e78beb72
commit fc5dda78f5

View File

@ -301,7 +301,6 @@ public final class PartyManager {
* Check if a player can join a party * Check if a player can join a party
* *
* @param player The player trying to join a party * @param player The player trying to join a party
* @param playerProfile The profile of the player
* @param party The party * @param party The party
* @param password The password provided by the player * @param password The password provided by the player
* @return true if the player can join the party * @return true if the player can join the party
@ -391,7 +390,7 @@ public final class PartyManager {
if (member.getName().equals(playerName)) { if (member.getName().equals(playerName)) {
member.sendMessage(LocaleLoader.getString("Party.Owner.Player")); 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")); member.sendMessage(LocaleLoader.getString("Party.Owner.NotLeader"));
} }
else { else {