This commit is contained in:
Trever Fischer 2012-10-23 14:50:51 -04:00
parent 4c5f180c52
commit d60c52ed04

View File

@ -139,12 +139,10 @@ public class JoinListener implements Listener {
public void onPlayerDeath(PlayerDeathEvent event) {
Player target = event.getEntity();
Entity source = target.getKiller();
System.out.println("Target: "+target.getName()+" killed by: "+source);
ClientEvent evt = new DeathEvent(target.getName(), event.getDeathMessage());
m_plugin.sendEvent(evt);
if (source instanceof Player) {
Player killer = (Player)source;
System.out.println("It was MURDER!");
evt = new MurderEvent(target.getName(), killer.getName());
m_plugin.sendEvent(evt);
}