Launch CraftBukkit with PHP on Windows ( exec () )

Discussion in 'Bukkit Help' started by Mafiatoss, Jul 11, 2013.

  1. Offline

    Mafiatoss

    dev.bukkit.org profile:
    CFUSERNAME
    My Plugins (CFCOUNT)
    Minecraft account:
    MCUSERNAME
    Hi,

    I'm actually create a panel for Minecraft Server on Windows.

    But i have a problems for start the server.. When the server start the server seems to don't read the server.properties and others..

    PHP CODE FOR THE COMMAND:

    $command=$command="runas /netonly /user:vps-218\shpv-218 ".chr(34)."E:\Host\Minecraft".chr(92).$_GET['serv']."\java-".$_GET['serv'].".exe -Xmx1024M -jar E:\Host\Minecraft".chr(92).$_GET['serv']."\craftbukkit.jar ".chr(34).'<C:\Users\shpv-218\Desktop\yes.txt';
    $WshShell = new COM("WScript.Shell");
    $oExec = $WshShell->exec($command);

    Who can help me please ?

    This post has been edited 1 time. It was last edited by TnT Jul 11, 2013.

Share This Page