Board Thread:General Mod Discussion/@comment-79.41.180.137-20170812234910/@comment-87.14.240.76-20170817225806

SamwiseFilmore wrote: Well that looks a lot better. Honestly I think you could make that whole onPlayerChat method into one line instead of four, but that will only get you confused, so don't bother.

Are you supposed to be instantiating LOTRPlayerData? And are you sure that that player has mordor alignment?

It's also entirely possible that the api does not subscribe to the "Hole of Success" methodology, so you might have to do something completely different. Other than just asking Mevans about that though, I have no idea.

Could someone with FB point Mevans to this thread?

Happy? xD

LOTRPlayerData a = new LOTRPlayerData(event.getPlayer.getUniqueId);System.out.println(a.getAlignment(LOTRFaction.MORDOR));

I checked if it works, It's able to give me the UUID of a Player but values like "Show position", "friendly fire", etc (also getAlignment) give me wrong values.