mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Fixed a bug where a new party leader wasn't appointed, after the previous party leader left
This commit is contained in:
parent
9c09c168f8
commit
34736836cc
@ -61,6 +61,7 @@ Version 1.4.00-dev
|
|||||||
= Fixed a bug where /party kick would trigger the PartyChangeEvent for the wrong player
|
= Fixed a bug where /party kick would trigger the PartyChangeEvent for the wrong player
|
||||||
= Fixed /party kick not working on offline players
|
= Fixed /party kick not working on offline players
|
||||||
= Fixed a bug where party join messages weren't displayed
|
= Fixed a bug where party join messages weren't displayed
|
||||||
|
= Fixed a bug where a new party leader wasn't appointed, after the previous party leader left
|
||||||
= Fixed a bug where Disarm and Deflect had wrong values
|
= Fixed a bug where Disarm and Deflect had wrong values
|
||||||
= Fixed Magic Hunter (Fishing ability) favoring certain enchants
|
= Fixed Magic Hunter (Fishing ability) favoring certain enchants
|
||||||
! Changed /p and /a to use /partychat and /adminchat as the default command name. The use of /p, /pc, /a, and /ac is still supported.
|
! Changed /p and /a to use /partychat and /adminchat as the default command name. The use of /p, /pc, /a, and /ac is still supported.
|
||||||
|
@ -211,8 +211,8 @@ 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)) {
|
if (party.getLeader().equals(player.getName())) {
|
||||||
String newLeader = members.get(0).toString();
|
String newLeader = members.get(0).getName().toString();
|
||||||
party.setLeader(newLeader);
|
party.setLeader(newLeader);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user