Like when I type stop in console it stop server and start back again in 2 sec Oh sorry idk where to do it
Take a look at this plugin it may help! https://forums.pocketmine.net/plugins/automatic-server-restarter.903/field?field=documentation To restart with a command of /stop make a command inside the plugin perhaps /s and use the pocketmine alias in the pocketmine.yml to run the restart command instead of just stopping the server.
What you asked for, "Auto Start" is asking for the server to be started upon restarting the whole computer. To accomplish that, use: Create a shortcut (Right click, Create a Shortcut) to the start.cmd. Once the shortcut has been created, right-click the file and select Cut. Press the Start button and type Run and press enter. In the Run window, type shell:startup to open the Startup folder. Once the Startup folder has been opened, click the Home tab at the top of the folder and select Paste to paste the shortcut into the folder. Restart your computer But if you don't mean this, then choose your words carefully.
Auto Start is to start the server automatically after restart/startup. Auto Restart is to restart the server after a certain amount of time, or upon the server stop. People should learn these SIMPLE terms explained in the use of PocketMine.