Thread: reload your server from command

Results 1 to 8 of 8
  1. #1 reload your server from command 
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    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
    public void customCommand(String command) {
    Step 2: in there add
    if (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();
    }
    }
    Step 3: where is says
    "cmd /C start C:/SERVERFILE/reloadserver1.bat";
    change SERVERFILE to the name of your server, must have no spaces and then move your server files directly into your C drive.

    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
     

  2. #2  
    SERGEANT OF THE MASTER SERGEANTS MOST IMPORTANT PERSON OF EXTREME SERGEANTS TO THE MAX!

    cube's Avatar
    Join Date
    Jun 2007
    Posts
    8,881
    Thanks given
    1,854
    Thanks received
    4,741
    Rep Power
    5000
    Pretty useful if someone wants to get server restarted and owner/hoster is away



     

  3. #3  
    Registered Member Rhys's Avatar
    Join Date
    Oct 2006
    Age
    26
    Posts
    532
    Thanks given
    1
    Thanks received
    1
    Rep Power
    45
    agreed.

    might use.
    Formally runescapemad.
     

  4. #4  
    x19
    Guest
    Untill you get an admin/mod that is a faggot.
     

  5. #5  
    Registered Member Rhys's Avatar
    Join Date
    Oct 2006
    Age
    26
    Posts
    532
    Thanks given
    1
    Thanks received
    1
    Rep Power
    45
    my pc is too fast for this =], always get the server is still online thing =]
    Formally runescapemad.
     

  6. #6  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    Quote Originally Posted by runescapemad View Post
    my pc is too fast for this =], always get the server is still online thing =]
    make it say alot of ramdom writing in loadserver3.bat before it uses the java part, like 200 lines of hello or something, just so it slows it down
     

  7. #7  
    Registered Member Rhys's Avatar
    Join Date
    Oct 2006
    Age
    26
    Posts
    532
    Thanks given
    1
    Thanks received
    1
    Rep Power
    45
    good idea.
    Formally runescapemad.
     

  8. #8  
    Registered Member
    killamess's Avatar
    Join Date
    Dec 2007
    Age
    30
    Posts
    1,508
    Thanks given
    51
    Thanks received
    284
    Rep Power
    1956
    Quote Originally Posted by x19 View Post
    Untill you get an admin/mod that is a faggot.
    you should only give admin to players who you know or are trustworthy.
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •