How to Teleport other world with ncp and without commands, and that the player cannot enter the comm

Discussion in 'Plugin Help' started by EnderXPs, Apr 25, 2021.

  1. EnderXPs

    EnderXPs Spider Jockey

    Messages:
    27
    GitHub:
    EnderPMMPyea
    Hello, how can you teleport yourself to another world without an order, and the player cannot enter the order only when you press NCP
     
  2. HeyDeniis_

    HeyDeniis_ Baby Zombie

    Messages:
    107
    I don't understand, can you explain better?
     
    minijaham likes this.
  3. Primus

    Primus Zombie Pigman

    Messages:
    627
    He probably used a translator.

    Check out https://poggit.pmmp.io/p/Slapper that is for the npc, you can use any level management plugin to teleport players.
     
    minijaham likes this.
  4. EnderXPs

    EnderXPs Spider Jockey

    Messages:
    27
    GitHub:
    EnderPMMPyea
    I need a plugin where the player can teleport through ncp and the game cannot execute the command
     
  5. BroSup46

    BroSup46 Creeper

    Messages:
    2
    GitHub:
    BroSup46
    Which world generation plugin do you use for example: multiworld, manyworlds, worlds, etc
     
  6. BroSup46

    BroSup46 Creeper

    Messages:
    2
    GitHub:
    BroSup46
    For multiworld use /slapper edit (id) addcommand mw tp (world name) {player}
     
  7. EnderXPs

    EnderXPs Spider Jockey

    Messages:
    27
    GitHub:
    EnderPMMPyea
    And when I go into a world, I always get Dia Sword automatically. Only plugin for download please
     
  8. DavyCraft648

    DavyCraft648 Spider Jockey

    Messages:
    34
    GitHub:
    DavyCraft648
    code it or search it yourself
    PHP:
    public function onLevelChange(\pocketmine\event\entity\EntityLevelChangeEvent $event): void {
        
    $player $event->getEntity();
        if (
    $player instanceof \pocketmine\Player) {
            
    $player->getInventory()->addItem(\pocketmine\item\ItemFactory::get(\pocketmine\item\ItemIds::DIAMOND_SWORD));
        }
    }
     
  9. Primus

    Primus Zombie Pigman

    Messages:
    627
    No, I want you to code it! Take the time of your day and help a stranger, thank you.
     
    DavyCraft648 likes this.
  10. EnderXPs

    EnderXPs Spider Jockey

    Messages:
    27
    GitHub:
    EnderPMMPyea

Share This Page

  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.