API for calculating time between server wipes

Supported Games

Calculates the number of days between wipes based wipes set in the configuration.

Configuration

{
  "4 week schedule (Days since forced wipe)": [
    0
  ],
  "5 week schedule (Days since forced wipe)": [
    0
  ]
}

Configuration Examples

Weekly Wipes

{
  "4 week schedule (Days since forced wipe)": [
    0,
    7,
    14,
    21
  ],
  "5 week schedule (Days since forced wipe)": [
     0,
    7,
    14,
    21,
    28
  ]
}

Bi Weekly Wipes

{
  "4 week schedule (Days since forced wipe)": [
    0,
    14,
  ],
  "5 week schedule (Days since forced wipe)": [
     0,
    14,
    28
  ]
}

Half way between forced wipes

14 days for 4 weeks between forced wipes
18 days for first half of 5 weeks and 17 days for second half of 5 weeks

{
  "4 week schedule (Days since forced wipe)": [
    0,
    14
  ],
  "5 week schedule (Days since forced wipe)": [
     0,
    18
  ]
}

Week Schedules

These are the schedules for wipes. The 4 week schedule is for when there are 4 weeks between forced map wipes and 5 week is used when there are 5 weeks between forced map wipes.

Developer Api

Hook

nextWipe - the date of the next wipe
daysTillWipe - how many days remain till the next wipe
isForcedWipe - is today a forced wipe and the wipe has not happened yet

private void OnWipeCalculated(Datetime nextWipe, int daysTillWipe, bool isForcedWipeDay)
MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.