DeathMessages!!!!!!!!!!! PROBLEMS

Discussion in 'Plugin Development' started by Felixbakkum, Feb 4, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    Felixbakkum

  2. Offline

    RainoBoy97

    Well... what's the problem?
     
  3. Offline

    EpicCraft21

    In your event handlers class, you probably don't want to get the damager, you want to get the killer.
    Check this out: http://jd.bukkit.org/rb/apidocs/org/bukkit/event/entity/EntityDeathEvent.html

    EDIT: Or you could change your Player killer = (Player) event.getDamager() to:
    Player killer = (Player) event.getKiller();
     
  4. Offline

    1Rogue

  5. Offline

    mine-care

    @1Rogue :D hehe nice one.

    Please be more specific on your description of the problem, not just whats wrong.
    One thing I spoked that is not actually wrong but it falls under java convention is that the classes should follow CamelCapitalisation. :) fix your main class plz. Also what was suggested above is correct about killer and damaged.
     
  6. @Felixbakkum You should really use the Insert button when inserting code into a post instead of Gyazo GIFs... It's a lot easier for us to read, and probably less work for you too.
     
    GrandmaJam likes this.
Thread Status:
Not open for further replies.

Share This Page