Specifying Long Time Periods #214


  • Enhancement
Open
  • Forge_User_73649202 created this issue May 14, 2019

    Hi Bob,

     

    I may be acting a bit thick here, but the 'interval' section of the config.yml, to be precise... this line -

    auto-removal:
      enabled: true
      broadcast-message: '&4&l[&cClearLag&4&l] &cRemoved &4&l+RemoveAmount &cEntities!'
      broadcast-removal: false
    <strong>  autoremoval-interval: 60
    </strong>
    Am I right in saying that this autoremoval-interval: 60, is seconds? If so, how do I specify once a month? Would it accept 2419200 seconds which is 4 weeks?

     

    Thanks,

     

    Luke.

     

  • Forge_User_73649202 added a tag Enhancement May 14, 2019
  • Forge_User_73649202 edited description May 14, 2019
  • bob7l posted a comment May 14, 2019

    The interval can be the maximum signed 4 byte integer size. BUT, this timer is ONLY based on the running server instance. So if you reboot daily, you wont ever be able to exceed 2419200 seconds. 

     

    Not exactly sure what your intentions are but having such a large clear interval is mostly useless. The only senerio Clearlag will be able to achieve your desired timings is:

     

    1) Server runs without a reboot for more then 2419200 seconds
    2) All the entities you want to remove are contained in loaded chunks. Clearlag does not touch entities that are not currently loaded

  • Forge_User_73649202 posted a comment May 16, 2019

    Okay, I understand what you're saying, basically I have members in game who have items going round in a 'shoot' like a water source going round for their 'Shop Feature' I want to allow it so I thought I would compromise and change the lag clear to every month, appose to once every hour like I recently have had it set at.

     

    Is there a way round this? - If not it is okay and I will just have to disallow it and warn them they will loose their items upon doing this.

     

    Thanks,

     

    Luke.

  • bob7l posted a comment May 16, 2019

    You could maybe find a scheduler plugin that supports large timeframes like that but it's not something I plan to add to Clearlag. 

  • Forge_User_73649202 posted a comment May 19, 2019

    What is the maximum amount of time I can specify then? 

     

    Without an extra plugin?

  • Forge_User_73649202 posted a comment May 20, 2019

    Bump

  • bob7l posted a comment May 25, 2019

    Depends on when your server reboots. Has to be less then the length of your server online time 

  • Forge_User_73649202 posted a comment May 26, 2019

    My server will only be being restarted once a week when it goes live mate.


To post a comment, please login or register a new account.