This should work...

This commit is contained in:
tastybento 2017-08-08 23:10:04 -07:00
parent 71d82c9bd5
commit e5cfce4c17
1 changed files with 1 additions and 1 deletions

View File

@ -941,7 +941,7 @@ public class IslandCommand extends AbstractCommand {
return;
}
// targetPlayer is the new leader
//plugin.getIslands().getIsland(playerUUID).makeLeader(targetPlayer);
plugin.getIslands().getIsland(playerUUID).setOwner(targetPlayer);
Util.sendMessage(player, ChatColor.GREEN
+ plugin.getLocale(playerUUID).get("makeLeader.nameIsNowTheOwner").replace("[name]", plugin.getPlayers().getName(targetPlayer)));