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

Server Crashing

Comments in 'Plugin Development' started by warnematt, Nov 23, 2013.

  1. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
    When I try my command to change worlds, the server crashes... anyone know what might cause this?

    PHP:
    case "netherworld":
                        
    $player->teleport($this->api->level->get("Nether")->getSpawn());
                        
    $player->sendChat("[Warp] Warped to Nether.");
                        
    $this->api->console->run("gamemode 0 $player");
                        break;
  2. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    maby show people crash file
  3. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    replace this
    Code:
    $player->teleport($this->api->level->get("Nether")->getSpawn());
    with this
    Code:
    $this->api->console->run("tp w:Nether");
  4. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
  5. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    there is a command to tp to worlds tp w:nether
  6. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    plus you need a world called nether in your worlds it crashes because there was no world to tp to
  7. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
    Yea, I know..And I dont want everyone having access to /tp
  8. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    they wont
  9. JassperBeastHD
    Offline

    JassperBeastHD Banned

    Joined:
    Aug 27, 2013
    Posts:
    436
    Minecraft User:
    JassperBeastHD
    No.
    It shoul be:
    $player = $issuer;
    $player->teleporblah blah blah
  10. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    Code:
    $player = $issuer;
    $issuer->teleport(w:Nether)
  11. warnematt
    Offline

    warnematt New Member

    Joined:
    Nov 2, 2013
    Posts:
    30
    Minecraft User:
    Matt
  12. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    opps i made a mistake
  13. Puzzleo
    Offline

    Puzzleo Banned

    Joined:
    Sep 7, 2013
    Posts:
    88
    Minecraft User:
    puzzleo
    Code:
    $player = $issuer;
    $issuer->teleport(w:Nether);
    added a semicolen

Share This Page

Advertisement