A couple errors

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

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

    BearGoesHam

  2. Offline

    timtower Administrator Administrator Moderator

  3. Offline

    BearGoesHam

    How do I make it not null?
     
  4. Offline

    timtower Administrator Administrator 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 Administrator Administrator Moderator

    Please post your new code.
     
  7. Offline

    BearGoesHam

  8. Offline

    timtower Administrator Administrator Moderator

  9. Offline

    BearGoesHam

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

    timtower Administrator Administrator 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
     
Thread Status:
Not open for further replies.

Share This Page