Solved PlayerDeathEvent problem

Discussion in 'Plugin Development' started by nastasescu, Jun 28, 2014.

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

    nastasescu

    I've put this on the main class

    I have no errors, but when i die in the game, nothing happens, no clear drops.
     
  2. Offline

    Traks

    Did you register your main class as listener?
     
    AoH_Ruthless likes this.
  3. Offline

    nastasescu

    Traks not yet, i will try it.

    EDIT: Still don't work.
     
  4. Offline

    Traks

    Could you show your whole main class?
     
  5. Offline

    nastasescu

    Traks
    That's the code (without the /kit command)
     
  6. Offline

    Traks

    Put
    Code:java
    1. Bukkit.getPluginManager().registerEvents(this, this);

    in the onEnable() method ;)
     
    nastasescu likes this.
  7. Offline

    nastasescu

    Traks
    Lol, it works. Thanks Tranks. Problem resolved.
     
  8. Offline

    Traks

    No problemo, it's a quite popular problem around here... Don't forget to mark solved threads as solved by the way!
     
  9. Offline

    nastasescu

    Traks my plugin is now on dev.bukkit.org, thank you again!
     
Thread Status:
Not open for further replies.

Share This Page