Board Thread:General Mod Discussion/@comment-79.41.180.137-20170812234910/@comment-79.20.34.65-20170818190952

The Ranger Malvegil wrote: Samwise is right. As far as I understand the decompiled code of the mod, you cannot just instantiate LOTRPlayerData because this will create a new object that is initialized with default values and it won't be synchronized with the actual playerdata. To retrive the playerdata, you've to use this method public static LOTRPlayerData getData(EntityPlayer entityplayer)  in LOTRLevelData.

So try something like this: System.out.println(LOTRLevelData.getData(event.getPlayer).getAlignment(LOTRFaction.MORDOR));

I don't know whether the player instance you got from the event (Player) is actually an instance of EntityPlayer, so you might have to retrieve an EntityPlayer from the Player you got. Let me try, I'll tell you if it works