Pretty useful if someone wants to get server restarted and owner/hoster is away![]()
|
|

Purpose:to reload your server via a command
Difficulty: 2
Assumed Knowledge: knowing how to follow exact steps
Server Base: Dodian ftw, will work will others i supose, but i have not tested with any others
Classes Modified: client.java
Procedure
Step 1: search for
Step 2: in there addpublic void customCommand(String command) {
Step 3: where is saysif (command.equalsIgnoreCase("rs") && (playerRights > 2)) {
try{
String reloadserver = "cmd /C start C:/SERVERFILE/reloadserver1.bat";
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec(reloadserver );
}catch (IOException e) {
e.printStackTrace();
}
}
change SERVERFILE to the name of your server, must have no spaces and then move your server files directly into your C drive."cmd /C start C:/SERVERFILE/reloadserver1.bat";
Step 4: download my batch files theres 100% safe look at them first if you dont believe me
[Only registered and activated users can see links. ]
Step 5: put all 3 batch files into your serverfiles the compile and your done.
tips:
::rs will reload your server, for player rights of 2 or above, you can change to whatever you want
also, the reason why there is 3 bat files instead of 1 is because sometimes it will load them to quickly and it will say your server is already running
Credits: 100% me
post any errors under here, if you like it or your gonna use it please post a comment![]()

Pretty useful if someone wants to get server restarted and owner/hoster is away![]()

agreed.
might use.
Untill you get an admin/mod that is a faggot.
my pc is too fast for this =], always get the server is still online thing =]
good idea.
| « Dragon arrows how to add [TUT] | ~~Healing~~ » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |