mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Merge pull request #262 from Diet-Cola/primary-owner-fix
Fix primary owner transfer not being set to OWNER role
This commit is contained in:
@@ -66,9 +66,11 @@ public class TransferGroup extends BaseCommandMiddle {
|
||||
+ " is not a member of the group and can't be made primary owner!");
|
||||
return false;
|
||||
}
|
||||
g.removeMember(futureOwner);
|
||||
g.addMember(futureOwner, GroupManager.PlayerType.OWNER);
|
||||
g.setOwner(futureOwner);
|
||||
owner.sendMessage(ChatColor.GREEN + NameAPI.getCurrentName(futureOwner)
|
||||
+ " has been given ownership of the group.");
|
||||
+ " has been given ownership of the group and promoted to OWNER role.");
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user