RestartServer
RestartServer - RS
This plugin does not implement anything new to the gameplay or game mechanics. It only adds one command - /restart
That will completely reboot the server.
Change Log
It is recommended to delete old configs before installing new version.
v1.0 - Initial release. Uses batch file restart system
v1.1 - Script modified not to give exceptions
v1.2 - Permissions
v1.3 - Replaced batch file system with "new Thread()"
v1.4 - Config - memory allocation.
v1.5 - Config - java path control.
v1.6 - added commands "/restart server" and "/restart map" see Commands Manuals page for help
Planned Features
v1.7 - [NEED SUGGESTIONS] (Bugfixes will be automatically implemented)
MAC support coming soon!
Warning!
This plugin will NOT work on any non-Windows systems as its java code uses unsupported class on Mac.
However, you can try even if you have Mac.
Permissions
Permission Name | Permission Node |
---|---|
Access to /restart | rs.restart |
How it works?
When /restart server|map is initiated, three things happen:
1. New instance of server is created and waits until it is shut down
2. Shutdown command is run
2a. If it was server, nothing else really happens
2b. If it was map, then old maps are archived, put in worlds_old folder and deleted and preset maps are copied into server dir
3. Server is started again through new instance [runtime()]
News
Mac or any non-Wondows user is needed for testing. User will be put into Tester section.
@z00100100
Honestly I do not know, you can try if you have spare time, and if it works, please write back.
It does not work on mac since to launch new instance of cmd it uses ProcessBilder() which is recognized as "unsupported class Exception" on Mac.
ok will not work on non windows system does that also mean lynx and ubuntu?
Please contact me when you fix it.
Ok thanks.
@omgitsadrian
That is because your java.exe is not in path. I will try to do something about finding java.
Hi, I currently downloaded this plugin and when I do /restart it just stops my server not opens it again.
(In response to that poll you have in the top-right corner.)
It should be "restart", and not "reload", so as not to confuse the command with Bukkit's "/reload" (which is simply not a good option to use). On top of that, you're technically restarting the server - not reloading every plugin.
@Bumbleboy92
Oh, sorry. It does not use batch system any more - it starts new thread meaning that it cannot start any other way (it starts cmd and gives "start java -jar 'jarfile'.jar" arguments and launches process via process builder). I will take this fact and set config file so user can define amount of memory to allocate and use either cmd or gui.
Thank you for suggestion.
Is there any way for this to restart without the .bat file? What I mean is that I'm using the BukkitGUI for my server, and when I type the /restart command, it stops the server but opens in the cmd. Is there anyway for it to stay in the GUI?