Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Level::getChunk()

Comments in 'Plugin Development' started by Samueljh1, Feb 3, 2015.

  1. Samueljh1
    Offline

    Samueljh1 Active Member Plugin Developer

    Joined:
    Jan 9, 2015
    Posts:
    316
    Plugins:
    5
    Minecraft User:
    Samueljh1_
    Hi, how can i do Level::getChunk() inside a function?

    If i do this... i get this error:

    Code:
    [NOTICE] RuntimeException:
     "Non-static method pocketmine\level\Level::getChunk() should not be called statically, assuming $this from incompatible context" (E_DEPRECATED)
     in "/***SECRET :P***/src/Samueljh1/***SECRET :P***/main" at line 107
  2. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,306
    Plugins:
    11
    Minecraft User:
    PEMapModder
    $level->getChunk(). Or how would they know which level you're getting a chunk from?
    iksaku likes this.

Share This Page

Advertisement