mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-29 16:46:46 +01:00
OfflinePlayer.getName().toString() is pointless.
This commit is contained in:
parent
1ef1d53fd9
commit
3d3a1abf7b
@ -212,7 +212,7 @@ public final class PartyManager {
|
|||||||
else {
|
else {
|
||||||
//If the leaving player was the party leader, appoint a new leader from the party members
|
//If the leaving player was the party leader, appoint a new leader from the party members
|
||||||
if (party.getLeader().equals(player.getName())) {
|
if (party.getLeader().equals(player.getName())) {
|
||||||
String newLeader = members.get(0).getName().toString();
|
String newLeader = members.get(0).getName();
|
||||||
party.setLeader(newLeader);
|
party.setLeader(newLeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user