mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 09:06:46 +01:00
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:
parent
d6e78beb72
commit
fc5dda78f5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user