Wipe Schedule plugin allows those of you that wipe regularly, to easily store and show your wipe patterns for your users along with countdowns for when the next wipe may happen.
Commands
Chat Commands
/nextwipe
-- View the wipe cycle/setwipe map
-- Set the last map wipe time to the current date/setwipe map <MM/DD/YYYY>
-- Set the last map wipe to the date specified/setnextwipe map <MM/DD/YYYY>
-- Set the next map wipe to the date specified (Requires "UseManualNextWipe" to be set to true in the config)
Console Commands
setwipe map
-- Set the last map wipe time to the current datesetnextwipe map <MM/DD/YYYY>
-- Set the next map wipe to the date specified (Requires "UseManualNextWipe" to be set to true in the config)
getwipe - Will reply the next wipe date
Configuration
Changing your date format
To change your date format, simply change the characters around in the "DateFormat" string found in your config, making sure to retain the capital M's for month.
Example: dd/MM/yyyy
When changing your date format, you must be sure you change the dates for "LastWipe" and "NextWipe" to match your new date format. Failing to do so with WILL result in error.
Example: previous date "07/13/2016" must become "13/07/2016"
Note that changing the format will NOT change the input arrangement when entering dates through commands!
Example Configuration
{
"DateFormat": "MM/dd/yyyy", // Use this to change your date format
"DaysBetweenWipes": 14, // Amount of days between wipes
"LastWipe": "07/03/2016", // Last wipe date (use console/chat commands to change this)
"NextWipe": "07/17/2016", // Next wipe date (use console/chat commands to change this)
"AnnounceOnJoin": true, // Shows a player when the next wipe is when they join
"AnnounceOnTimer": true, // Activates automatic broadcast of next wipe date
"AnnounceTimer": 3, // Time between broadcasts (in hours)
"UseManualNextWipe": false // Allows manual setting of next wipe date
}
Credits
- This plugin was originally created by Smoosher. If you like his work, consider donating to him here.
TODO
- Remove unnecessary ResourceId
- Add
[Description(...)]
attribute containing a brief description - Change title to title-case
MIT License
Copyright (c) 2019 k1lly0u
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.