Hi!
I'm rather new to this, but I will try to be as straightforward as possible.
(I did read the rules -- But this code snippet isn't really so big I should have to upload it elsewhere, right?)
I'm developing a MCPC(Bukkit + Forge) server plugin.
@ForgeSubscribe
public void onAttackEntityEvent(AttackEntityEvent event){
Bukkit.getServer().broadcastMessage("You hit something!");
}
My main question here is how I am to go about retrieving the player from this event. Right now it does not even broadcast any message. (I've imported the bukkit libraries aswell.)
What I want to do is import the Player(Attacker) from this event, and then use it in another method from a mod library. Then, I want to put the player in a scoreboard team.
Also, I think I need the obfuscated EntityPlayer, "sq".
Is this possible?
Thanks in advance,
SurMjölk
Important edit, or TL;DR Edit:
////////////
It's probably important to note that my main concern is not being able to retrive the player as "Sq player" or "EntityPlayer", which are two of what seems to be applicable players for the mod method I'm trying to use.
///////////