Solved Undefined Method

Discussion in 'Plugin Development' started by YoloSanta, Jun 19, 2017.

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

    YoloSanta

    Heres a screenshot of my class, I really don't know what to do to fix the error
    Click Here
     
  2. Offline

    Zombie_Striker

    @YoloSanta
    1. Why is falldamge an Object? What are you trying to store here?
    2. You do not need to log the plugin in the onEnable. Bukkit does this for you.
    3. Return false is not within a method, nor is it needed. Delete it.
    4. You have unnecessarily brackets after the return false. Remove them
    5. You forgot to add brackets for the event.
    6. FallDamage is not a List, nor hashmap. Change it to one.
    7. You did not register the class. You need to register the class in order for events to be called.
     
    RcExtract likes this.
  3. Offline

    Horsey

    I suggest learning Java before Bukkit because it's apparent you don't know what you're doing.
     
    RcExtract likes this.
  4. Offline

    RcExtract

    I think u are rushing through a code. Dont do that.

    You should also check whether if the target entity is a player before casting.

    Sent from my LG-H860 using Tapatalk
     
Thread Status:
Not open for further replies.

Share This Page