UHC death event help

Discussion in 'Plugin Development' started by 1928i, Jan 31, 2015.

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

    Konato_K

    @SuperOriginal Just two or three, it means I'm not entirely sure


    @1928i Have you tried with SKULL_ITEM or not?
     
  2. Offline

    SuperOriginal

    @Konato_K Well a debug attempt indicated that the event wasn't being fired at all


    @1928i Are you sure you're updating your plugin correctly? Change the version or something in your command to verify it's up to date
     
  3. Offline

    1928i

    @SuperOriginal
    What do you mean, I mean, the server and plugin are the same version, I know that.
     
  4. Invisible

    nverdier

    @1928i No, he's saying to make sure you're actually compiling and using the most recent version of your plugin.
     
  5. Offline

    1928i

    @nverdier
    Yes, I'm one hundred percent sure.
     
  6. Offline

    Konato_K

    @1928i Once I had this issue, no mattee what I changed in the code, it never worked, nothing changed, it was like before.

    Some minutes later I realized I wasn't copying the plugin to the server...
     
  7. Invisible

    nverdier

    Facepalm.

    @1928i Just try changing the plugin version to make sure it's changing in the server, because it could just be a simple problem like that.
     
  8. Offline

    1928i

    @Konato_K
    Mine is being saved straight to the plugin folder.

    @nverdier
    Ok, I will try.
     
  9. Invisible

    nverdier

    @1928i It could also be a message onEnable, or anything, but you know.
     
  10. Offline

    1928i

    @nverdier
    I did it so I was 100% sure it was in the right spot and that it was the latest and it still didn't work.
     
  11. Invisible

    nverdier

    @1928i And you're sure the event is fired?
     
  12. Offline

    1928i

  13. Offline

    JasonT148796

    Add a tester
    for example:
    Code:
    if(p instanceof Player){
        p.chat("The command part works");
    }
    
    If it works then you know the command is atleast sending.
     
  14. Offline

    Skionz

    @1928i He means are you sure that the method is being invoked?
     
  15. Offline

    1928i

    @JasonT148796
    The command works! The event is where the issues are.
    @Skionz
    I will try to make another event and see if it runs.
    EDIT: When I added a player join event, it worked, it is an issue with the player death event.
     
  16. Offline

    Skionz

    @1928i You haven't answered the question. Is the event being called?
     
  17. Offline

    1928i

    @Skionz
    What do you mean? Of course it is being called.
     
  18. Invisible

    nverdier

    @1928i How do you know? Did you print out a message when it's being called?
     
  19. Offline

    1928i

    @nverdier @Skionz
    Iactually, I misunderstood the question, it is not being called.
     
  20. Invisible

    nverdier

    @1928i There we go. And you've registered the event, yes?
     
  21. Offline

    1928i

  22. Invisible

    nverdier

    @1928i I don't see anything wrong with it ATM, probably some little simple thing we're both missing :p
     
  23. Offline

    1928i

    @nverdier
    Probably, but I hope I can get it fixed soon.
     
  24. Invisible

    nverdier

    @1928i Did you add a debug message to make sure it's not being called? Also please post the latest.log.
     
  25. Offline

    1928i

    @nverdier
    I did not add a debug statement and, not to sound like a noob, am unsure of what that is, also, I don't know what latest.log is. I don't want to sound like a noob, but I've never been faced with an issue like this.
     
  26. Invisible

    nverdier

    @1928i The latest.log is just the console output. A debug statement is just a System.out.println("debug test") or something.
     
  27. Offline

    1928i

    @nverdier
    Well, I had Bukkit broadcast a message that didn't send, is that a debug test? Also, what part of the console output would be necessary?
     
  28. Offline

    ZanderMan9

    It MIGHT be that you're putting your listener in your main class. This can sometimes cause issues. I recommend making a separate class that implements Listener.
     
  29. Offline

    1928i

    @ZanderMan9
    Well, other events work. It's just this one.
     
  30. Offline

    Konato_K

    @1928i May I ask for the all related class? (with updated code)
     
Thread Status:
Not open for further replies.

Share This Page