Board Thread:General Mod Discussion/@comment-79.41.180.137-20170812234910/@comment-79.24.26.65-20170817140318

SamwiseFilmore wrote: In your main, you're not passing an event to the constructor of eventi. You're passing a reference to your main plugin class.

For debugging, a good way to start is to make sure that your internal API is well named (I.E, instead of calling your JavaPlugin class "main", call it "JavaPlugin". Once you've got good names for all of your variables and things, it's easier for both you and me to look at your code and understand it.

You should also remove unused imports. Those make it more difficult to understand where you're pulling code from. Remove everything that isn't necessary to build your code.

In your LOTRPlayerData class, it doesn't look like you need to inherit from it at all. In your eventi class, don't instantiate your "test" class, just create an instance of LOTRPlayerData and pass it the player UUID. Then, simply print the result of a getAlignment call on that object.

If you simplify something, chances are that it might be more likely to work.

What abouth that? Still not working, it give me value of 0

main: https://pastebin.com/7EqgR0x0

event: https://pastebin.com/eY0SURwN