mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-10-31 17:23:42 +01:00 
			
		
		
		
	Fixed a bug where a new party leader wasn't appointed, after the previous party leader left
This commit is contained in:
		| @@ -61,6 +61,7 @@ Version 1.4.00-dev | ||||
|  = Fixed a bug where /party kick would trigger the PartyChangeEvent for the wrong player | ||||
|  = Fixed /party kick not working on offline players | ||||
|  = 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 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. | ||||
|   | ||||
| @@ -211,8 +211,8 @@ public final class PartyManager { | ||||
|         } | ||||
|         else { | ||||
|             //If the leaving player was the party leader, appoint a new leader from the party members | ||||
|             if (party.getLeader().equals(player)) { | ||||
|                 String newLeader = members.get(0).toString(); | ||||
|             if (party.getLeader().equals(player.getName())) { | ||||
|                 String newLeader = members.get(0).getName().toString(); | ||||
|                 party.setLeader(newLeader); | ||||
|             } | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 TfT_02
					TfT_02