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

Solved dropItem error

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

  1. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
  2. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    You need to load the level before start the task (i think.....)
     
  3. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    I already did
     
  4. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    On your plugin baseeeeee....
     
  5. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    I use dispatch (MultiWorld Load)
     
  6. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    $this->getServer()->loadLevel("your level");

    i think....(i am forget)
     
  7. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Ok. trying
     
  8. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    No. It didn't work
     
  9. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    I think you don't understand what i say :/
     
  10. RicardoMilos384

    RicardoMilos384 Slime

    Messages:
    82
    GitHub:
    ricardomilos384
    PHP:

    class YOUR MAIN extends PluginBase{
        public function 
    onLoad(){
            
    $this->getServer()->loadLevel("your level");
        }
     
  11. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    I trying
     
  12. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    Didn't work
     
  13. KingOfTurkey38

    KingOfTurkey38 Spider

    Messages:
    7
    Please send the code where you schedule the task, your probably passing a Position object without a Level
     
  14. ByAlperenS

    ByAlperenS Spider Jockey

    Messages:
    26
    GitHub:
    ByAlperenS
    I solved. Thanks everyone
     
    RicardoMilos384 likes this.
  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.