I need a plugin that when the server is shutting down, will trigger a thing that will restart the server, after shutdown. I am using Multicraft, if that is helpful...
MinerMovies Multicraft listens to commands. Certain commands will restart the server, /stop will just kill it. Maybe an alias for /stop so it will fire multicrafts /restart ?
Ooor, you could use a simple batch file that would completely shut it down and restart it... Code: @ECHO OFF :res java -Xmx(your value) -Xms(your value) -jar craftbukkit.jar -o true echo Would you like to restart or close? (r/c) :err set /p restart="> " if %restart%==r goto res if %restart%==c exit echo Error: response was neither r or c. goto err
ZanderMan9 Ooor, I think you missed the part where he said that he is using Multicraft. You can't add custom scripts there.
timtower Sorry, don't know much about multicraft. I don't know why he couldn't change it if he has FTP access. I think Multicraft has a built-in FTP, right? So run.bat could be modified there?
ZanderMan9 You can also protect files with FTP. That file is protected, and if not: server could be wrapped. No possible way to change the run.bat on it, can't even read it.
I don't know if its a hidden feature, but i use a multicraft server and when it stops it automatically restarts..
timtower That's what I despise about hosts. You can't modify anything. You have to use some crap like Multicraft, which gives you very little power over your server. And even if they give you FTP they have it so locked up it's ridiculous. Also, what exactly is "wrapping a server"? I'm afraid I'm not much of an expert on that sort of thing.
/stop is kinda messy with that as it really stops the server without restarting ( if I recall correctly from ~a year ago ) /restart is in multicraft and will fully stop and start the server. It is having the server encased in other software to contain and control it.
So another bit of software starts the server and restricts the program somehow? I don't see how much a server could be changed without modifying the actual code of it.
ZanderMan9 FTP can be blocked with FTP. And try input and output streams. Those control the server. I can make a wrapper that will run the server and would send the logs and commands to MySQL.
Ah true. I could make a batch file that would redirect the standard output to a file of other program. Would that be considered a "wrapper"? Edit: timtower
ZanderMan9 Not very useful to let the batch file handle that if you want to send it to a different program if that is even possible. We are getting offtopic here. I quit with this conversation. If you want to talk about it: post something on my profile page. I don't want to see a PM about this.