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

Restarting server

Comments in 'Plugin Development' started by PEMapModder, Dec 16, 2013.

  1. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,325
    Plugins:
    11
    Minecraft User:
    PEMapModder
    PHP:
    public function cmdHand($c,$a,$i){
      if(
    $c==="restart"){
        (new 
    ServerAPI())->start();
        
    $this->cAPI->run("stop");
      }
    }
    Would this work? I didn't have the courage to test it, and if not, why would it not?

Share This Page

Advertisement