Fixed a bug where a new party leader wasn't appointed, after the previous party leader left

This commit is contained in:
TfT_02 2013-02-15 13:22:31 +01:00
parent 9c09c168f8
commit 34736836cc
2 changed files with 3 additions and 2 deletions

View File

@ -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.

View File

@ -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);
} }