HI, I'm trying to make my lobby core but I'm stuck at teleporter part i tried to run a command from other plugins to teleport players using dispatchcommand but it didn't seem to work. any help?
If you merely want to teleport a player, you don't need to run commands. Just call teleport() on the player.
You can teleport the player using teleport shown below: PHP: $player->teleport(new Position($x, $y, $z); To teleport across worlds I recommend you do something like this: PHP: $player->teleport(new Position($x, $y, $z, $this->getServer()->getLevelByName($world))); Where you define $world, $x, $y, and $z before hand. In addition to make the transition to another world as smooth and as lag free as possible I'd recommend that you load the level before teleportation or on startup in the pocketmine.yml file.