Search Command from Event(EntityDeathEvent)

Discussion in 'Plugin Development' started by Kingzuck, May 7, 2012.

Thread Status:
Not open for further replies.
  1. Hey,

    I Search a Command to find out who have kill the Entity with the Event(EntityDeathEvent).
    I hope you can help me :)

    lg
     
  2. Offline

    coldandtired

    You need event.getEntity().getKiller(); Make sure to check it's not null before using it.
     
    Kingzuck likes this.
  3. Okay its work now.
    But i have a new problem, when anybody kill a chicken the plugin write 1 in the config.
    When the person kill a other Chicken the Plugin write 2 in the config, ect.
    But when i reload or restart the Server and the Person kill the chicken the Plugin not added the nummer in the Config :/

    €:Found
     
Thread Status:
Not open for further replies.

Share This Page