Board Thread:General Mod Discussion/@comment-79.41.180.137-20170812234910/@comment-87.2.244.124-20170822201955

87.2.244.124 wrote: [CODE]

package testlingua;

import lotr.common.LOTRFaction;

import lotr.common.LOTRLevelData;

import org.bukkit.craftbukkit.v1_7_R4.entity.CraftPlayer;

import org.bukkit.entity.Player;

import org.bukkit.event.EventHandler;

import org.bukkit.event.Listener;

import org.bukkit.event.player.PlayerJoinEvent;

/**




 * @author VoltaJack



public class eventi implements Listener {

private main pluginEvent;

public eventi(main plugin)

{

this.pluginEvent = plugin;

}

@EventHandler

public void onPlayerChat(PlayerJoinEvent event) {

Player player = event.getPlayer;

// LOTRPlayerData a = new LOTRPlayerData(player.getUniqueId);

// int c = a.getAlignment(LOTRFaction.MORDOR);

net.minecraft.server.v1_7_R4.EntityPlayer entityPlayer = (net.minecraft.server.v1_7_R4.EntityPlayer) ((CraftPlayer) player).getHandle;

System.out.println("test");

System.out.println(LOTRLevelData.getData(entityPlayer.uniqueID).getAlignment(LOTRFaction.MORDOR));

}

}

[CODE]

Error:

https://s2.postimg.org/6mhrjamq1/Screenshot_93.png
 * Code: https://pastebin.com/0W7hhHSy