Thread: [question] auto save [question]

Results 1 to 2 of 2
  1. #1 [question] auto save [question] 
    Registered Member
    Join Date
    Aug 2010
    Posts
    37
    Thanks given
    0
    Thanks received
    0
    Rep Power
    1
    recently i added this in process:

    if(System.currentTimeMillis() - lastAction >= 30000){
    lastAction = System.currentTimeMillis();
    System.out.println("[AUTO-SAVE] - "+playerName+" Autosaved.");
    savegame(false);
    return true;
    }

    and it works perfectly fine, it auto saves everything, but what negatives can this have?
    will it lagg my server?
    Reply With Quote  
     

  2. #2  
    Zaros Developer

    Nomac's Avatar
    Join Date
    Feb 2011
    Age
    26
    Posts
    1,068
    Thanks given
    318
    Thanks received
    200
    Rep Power
    1092
    Well, this is okay for a delta based server.

    I would recommend looking into Tickables or Events.


    Reply With Quote  
     


Thread Information
Users Browsing this Thread

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


User Tag List

Similar Threads

  1. Replies: 5
    Last Post: 04-03-2012, 05:44 PM
  2. Right Click Auto Cast question
    By Faris in forum Help
    Replies: 3
    Last Post: 09-26-2011, 05:23 PM
  3. Replies: 3
    Last Post: 09-22-2011, 02:35 AM
  4. Replies: 8
    Last Post: 06-26-2011, 05:15 AM
  5. Auto Donation System Question
    By Harambe_ in forum Help
    Replies: 1
    Last Post: 11-17-2010, 12:23 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •