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

@@ -222,7 +222,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
Faction currentFaction = this.getFaction();
currentFaction.removeFPlayer(this);
if (currentFaction.isNormal()) {
currentFaction.clearClaimOwnership(this.getId());
currentFaction.clearClaimOwnership(this);
}
}
@@ -302,7 +302,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator {
}
public String getName() {
if(getPlayer() != null) {
if(isOnline()) {
return getPlayer().getName();
}
/*OfflinePlayer player = Bukkit.getOfflinePlayer(UUID.fromString(getId()));