Update faction storage to use UUID

This commit is contained in:
gravitylow
2014-04-16 21:10:12 -04:00
parent 43d5c32bad
commit da16b662b4
4 changed files with 153 additions and 56 deletions

View File

@@ -79,8 +79,8 @@ public class CmdOwner extends FCommand {
return;
}
if (myFaction.isPlayerInOwnerList(playerName, flocation)) {
myFaction.removePlayerAsOwner(playerName, flocation);
if (myFaction.isPlayerInOwnerList(target, flocation)) {
myFaction.removePlayerAsOwner(target, flocation);
fme.msg("<i>You have removed ownership of this claimed land from %s<i>.", playerName);
return;
}
@@ -89,7 +89,7 @@ public class CmdOwner extends FCommand {
if (!payForCommand(Conf.econCostOwner, "to set ownership of claimed land", "for setting ownership of claimed land"))
return;
myFaction.setPlayerAsOwner(playerName, flocation);
myFaction.setPlayerAsOwner(target, flocation);
fme.msg("<i>You have added %s<i> to the owner list for this claimed land.", playerName);
}