Don't put the space before the ], it was just used by @Blabla so it doesn't show the codeblock (even tough he could've used [PLAIN]).. Do it like this: [PHP]Your code[/PHP]
Don't use static :: for non-static functions, even if you are just trying to say it. Just say Level->getDimension() instead.
Just FYI: There is nothing wrong with using static calls for function reference info. You don't have an object of the type to work with. It would be syntactically worse to do $blah->getDimension() because $blah isn't defined and thus we have no idea what type of data we are operating on. Yes, yes, you could do "$blah = new Level(); $blah->getDimension()", but that's just a bit too verbose
`new Level()` is even more wrong why not use `unserialize('O:22:"pocketmine\level\Level":0:{}')`? But that would make getDimension() return null. Wait... Does that method even exist?
It is actually valid to call Level::blah() if you are in the Level scope or the scope of its subclass.