Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Restores the owner from other variables if he is null on loading.
- */
- public void restoreOwnerIfNull()
- {
- final Map.Entry<UUID, Player> owner = getOwnerEntry();
- if (owner == null && ownerUUID != null)
- {
- final GameProfile player = FMLCommonHandler.instance().getMinecraftServerInstance().getPlayerProfileCache().getProfileByUUID(ownerUUID);
- if (player != null)
- {
- players.put(ownerUUID, new Player(ownerUUID, player.getName(), Rank.OWNER));
- }
- }
- markDirty();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement