A couple errors

Discussion in 'Plugin Development' started by BearGoesHam, Jan 5, 2019.

  1. Offline

    BearGoesHam

  2. Offline

    timtower Ninja on the waves Moderator

  3. Offline

    BearGoesHam

    How do I make it not null?
     
  4. Offline

    timtower Ninja on the waves Moderator

    You use constructors to pass along the instances.
     
  5. Offline

    BearGoesHam

    I did that but I'm still getting the same errors
     
  6. Offline

    timtower Ninja on the waves Moderator

    Please post your new code.
     
  7. Offline

    BearGoesHam

  8. Offline

    timtower Ninja on the waves Moderator

  9. Offline

    BearGoesHam

    How would I make a constructor then, i've never really used them
     
  10. Offline

    timtower Ninja on the waves Moderator

  11. Offline

    BearGoesHam

    Last edited: Jan 5, 2019
  12. Offline

    KarimAKL

    @BearGoesHam Don't use a constructor in the main class, use the onEnable instead, also the constructor is empty.
     
  13. Offline

    BearGoesHam

    How else would I use the constructor? and do I even need anything in the constructor? I don't have anything I need in it
     

Share This Page