LegendaryRestart
Newest Version: 1.2
Notes
MORE INFORMATION WILL BE POSTED SOON
About
LegendaryRestarts gives your server the ability to restart every x number or minutes and you also have the option to restart now
Features
- Automatic Server Restarts
- Linux Support
- Windows Support (Windows Script by bergerb)
- Automatic Updates (Optional in config)
Setup
- Download the zip file
- Unzip it
- Put LegendaryRestart.jar and the LegendaryRestart folder in the /plugins/ directory
- Replace your start.bar OR start.sh with the new ones
- Start.sh is used on linux, Start.bat is used on windows
- Run the Start file and then your server is setup for automatic restarts
NOTE
if you are using linux for the start.sh file to work you need to use the command chmod 777 start.sh
Default Config
#all intervals are in minutes #there is 1440 minutes in 1 day #720 in 12 hours Settings: Restart_Message: '&aServer is restarting' Broadcast: true Messages: 1: '&cServer Restarting in 5 Seconds' 2: '&cServer Restarting in 4 Seconds' 3: '&cServer Restarting in 3 Seconds' 4: '&cServer Restarting in 2 Seconds' 5: '&cServer Restarting in 1 Seconds' 6: '&cServer Restarting' Automatic_Restarts: Broadcast: true Restart_Interval: 720 Messages: 1: '&cServer Restarting in 5 Minutes' 2: '&cServer Restarting in 2 Minutes' 3: '&cServer Restarting in 1 Minute' 4: '&cServer Restarting in 30 Seconds' 5: '&cServer Restarting in 15 Seconds' 6: '&cServer Restarting in 10 Seconds' 7: '&cServer Restarting in 5 Seconds' 8: '&cServer Restarting in 4 Seconds' 9: '&cServer Restarting in 3 Seconds' 10: '&cServer Restarting in 2 Seconds' 11: '&cServer Restarting in 1 Second' 12: '&cServer Restarting'
Commands & Permissions
Command | Description | Permission |
---|---|---|
/legendaryrestart reload | Reload Config | LegendaryRestart.Reload |
/legendaryrestart restart | RestartServer | LegendaryRestart.Restart |
/lr reload | Reload Config | LegendaryRestart.Reload |
/lr restart | RestartServer | LegendaryRestart.Restart |
/restart | Restart Server | LegendaryRestart.Restart |
To-Do
- More Customization
- More Features
I have a server set to restart every 6 hours (360) but sometimes LR takes longer than that to decide to restart despite the setting. IT does eventually restart, but late. Right now in fact, it's almost 2 hours late but it has been working.
??
@jcoz00
you might have to select the folder that your craftbukkit.jar is in first.
Also, in linux I had to select the craftbukkit folder and type 'sudo chmod +x start.sh' so the file could be executed.
When I start your run.sh on my mac and type "start" in terminal, it says can't locate craftbukkit.jar! Also is it compatible with 1.6.2?
is this plugin lightweight?
Happen to know what this means?
If you want to set online mode false,change the -o true to -o false
@Shevchikden
So... but your Plugin only stops the server :) and dont restart it ^^
@IcyRelic
Thanks :)
@bergerb
Done
@IcyRelic
Hi,
Yes, my Plugin supports now linux, the script does the same as thr batch file.
Sure, you can use it, but if you copy it, it would be great, that you wrote in your description, that the script is by me...
bergerb
@Pendar2
yes
@bergerb
Yes i use your batch file but there is more features i support linux idk if you do now but at the time you didnt and i needed a plugin that did so i made my OWN jar file that used your windows bat file because it would turn out the same if i did it but i made my own linux shell file
@bjonness98
What is the shell script language? is it the same as linux?
Add a start script for the mac users!! (start.command)
Ok im the guy with the mac. start.command is the correct way to start a server on a mac but when i try start.command with your script it lets me type "start" but when I do it says that the craftbukkit.jar cannot be located. I did chmod a+x like a regular mac server owner and I double checked the scripts. Any help?
@bergerb
So what?
The idea doesn't come only to one man.
If you are worried about competition - just make more features, so people will use your plugin.
For useres it's always good when there are different plugins for doing same things.
BTW my plugin can actually restart server without those scripts, but no one still copied it :(
@CoreySeth
But the batch file is the same as my one. This plugin dont have more features than mine and do the same thing.
@bergerb Just because you have an idea for a plugin doesn't mean it's just your idea and only you can do it.
Why do you copy my idea? I think, that its okay to use your own plugin for your own server, but you mustnt copy my ideas and dont write at this site, that you copy the batch file from my plugin...
bergerb
Does this work with 1.5.2?
The plugin needs to be compatible with servers that go on hosting companys due to i tryed it and it doesnt work at all
i would say about 75% of server owners will want this!