Hi guys I've recently started to writing my own plugins, i made this plugin to reset the map every 12 hours, this plugin only works well with the latest version of Pocketmine-Mp and A loop script thanks to Intyre for All his help with this plugin Download Link https://www.dropbox.com/s/blq9cojzstrrbrt/mapReset.php There's no need to configure this plugin + there's no commands for this Plugin Code: Fixed issue with the timer Kind Regards Antisober552
Can u make a plugin with a restart command? Or can I try to steal your code and try to make one with a command like that and give you like 90% of the credit? Lol
HI really u can not make a restart command out of my plugins but is you want to use some of my code thats fine with me kind regards Antisober552
how do u loop the start.bat file i added the goto start then added start: in the code but it still require a button to be press for it fully restart itslelf. I have remove the pause.
Bash supports a While command though you will need to edit start.sh to do this, As shogichp's code will the prompt for enter after a crash or certain memory errors, Edited code, Removed the prompt to allow a reloading function: Code: #!/bin/bash DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" ) " && pwd ) " cd "$DIR" if [ -f ./php5/bin/php ]; then mkdir -m 0777 bin/ mv ./php5/bin/php ./bin/php rm -rf ./php5/ fi if [ -f ./bin/php ]; then ./bin/php -d enable_dl=On PocketMine-Mp.php [email protected] exit 0 <-- Zero Dont type this :) fi exit -d enable_dl=on PocketMine-MP.php [email protected] exit 0 <-- Zero Again, dont type So an example script would go: Code: #!/bin/bash while [ 1 ] do clear bash start.sh echo Server Crashed or Stopped by SIGINT sleep 5 done Now if you wanted to actually quit the server, that sleep code keeps a window open (For five seconds) for you to use CTRL + C (Sigint). Now if you want to run a backup script as well you can try nested while statements: Code: #!/bin/bash while true do clear while true do EXAMPLE COMMAND LOLOL done & EXAMPLE COMMAND TWO LOLOL done I wouldn't recommend that though, as if the script is not terminated properly you can run into a nasty always running scenarios the require you to reboot, as pocketmine will be cutting into everything you type and not allow you to type properly. </3
This plugin is broken with the newest version of Pocketmine, can anyone fix it? I'm also wondering if someone could make a variant of this plugin that, instead of deleting and reloading the chunks file, it could replace the existing chunks with chunks from a different map (Just copy and replace). That way when the map resets, pre-made areas like spawns will still work.
This plugin does not work, when it deletes all of the chunks, they are not regenerated. So the world is just blank and you fall forever.