1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

getServer() on null

Discussion in 'Plugin Help' started by ByAlperenS, May 31, 2020.

  1. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Error:

    Code:
    Error: "Call to a member function getServer() on null" (EXCEPTION) in "src/pocketmine/event/entity/EntityDamageByEntityEvent" at line 65
    Code:

    Screenshot_20200531-190133_Quoda.jpg
     
  2. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    Can you give a backtrace that goes after the error?
     
  3. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    I don't understand
     
  4. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    Look, after you get the error, there should be a backtrace with some reverse calls (numerated usually from #0 to #6)
     
  5. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Bro, I don't understanding again. Do you have a sample code?
     
  6. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    Try enabling debugging in pocketmine.yml (set debug-level to “2”). After you get an error it should be something like this: 880B7781-6C82-4C4E-9972-4E6D139D585D.jpeg
     
  7. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
  8. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
  9. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    Dude, show what you have after your “getServer() on null” error.
     
  10. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    this is the problem i never used getServer ()
     
  11. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    Just enable debugging, do things that cause this error and show your error message from console.
     
  12. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    And, also, are you sure that you identified defective plugin correctly? Maybe, is it something else that causes this error?
     
  13. I Am ScRay

    I Am ScRay Silverfish

    Messages:
    16
    GitHub:
    iamscray
    Sorry, I don’t speak Turkish :)
     
  14. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    oh sorry , you wait a 20 minutes please
     
    HixXNetwork likes this.
  15. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    no bad plugins
     
  16. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Screenshot_20200531-203012_PocketMine-MP.jpg
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.