About PurgeFX
This plugin offers server owners who run a purge on their server the ability to set up a schedule to automatically start the purge based on what is in the config. For example, if you have the 1st, 3rd, and 5th weeks and the day set to Wednesday, it will start the purge on the 1st Wednesday of the month at a time given to it by you in the config. After that, it will calculate when the next purge will start; in this case, the 3rd Wednesday of the month, and start the purge at the time you have already set in the config on that day. You can add multiple days or just change the day if your server follows a different wipe schedule. This will automatically unload plugins for you of your choosing. The default ones are PreventLooting, TruePVE, and SmoothRestarter. You can add or delete as many as you wish. There is a built-in check as well; in the event of a server restart, it will realize that the purge is still supposed to be active and unload the plugins again when the server comes back online. This will also automatically calculate when the next purge will be and type that to chat or use the Notify plugin at an interval of your choosing. Chat colors are also configurable, as well as the chat prefix name and color. You can also set it to type what kind of message you want with a true or false statement in the config. If you don't want to wipe your server after the purge, it will reload the plugins for you at the purge end time set in the config . This also offers support for the Sound Library API, so you can play a sound to all of your players on purge start. You can also start and end the purge manually with the command /purge and /endpurge in chat as well as the console. You can customize the commands as well. The /purgetime command will allow players to see the purge start, purge end, and server wipe messages again in chat.
Some features this offers:
Set up purge to run automatically on specific days and weeks of the month.
Customize start and end times to fit your server’s schedule.
Force start or end purges on-demand with commands /purge and /endpurge.
Keep players informed by displaying upcoming purge start and end times as well as server wipe time that are calculated automatically.
Customize which plugins to disable and reload based on your server's needs.
Fully customizable message colors and notification methods.
Attached is an example of my config.
*AFTER THE FIRST LOAD UP YOU HAVE TO CHANGE THE DATES AND TIMES IN THE DATA FILE TO MATCH WHAT YOU HAVE IN THE CONFIG AFTER THAT IT WILL RECALCULATE AND UPDATE THEM FOR YOU.
{ "Console command for Purge": "purge", "Chat command for Purge": "purge", "Console command for force wipe, will enter this command for you on server force wipe day and time": "wipe forced", "Console command for other wipes, will enter this command for you on mid month or weekly wipe day and time": "wipe weekly", "List of plugins that will be unloaded on purge start": [ "PreventLooting", "TruePVE", "LethalHeadshots", "SmoothRestarter", "SkipNightVote", "BaseRepair", "TrafficDrivers", "RestoreUponDeath", "Noclip", "RandomRaids", "RaidableBases", "NTeleportation", "Backpacks", "BackpackButton" ], "Prefab name to play on purge start": "assets/bundled/prefabs/fx/invite_notice.prefab", "Weeks of the month, when the purge will run": [ 1, 3, 5 ], "Days of the week, when the purge will run": [ "Wednesday" ], "Days of the week for purge to end": [ "Thursday" ], "Weeks of the month for purge to end": [ 1, 3 ], "Days of the week for server wipe": [ "Thursday" ], "Weeks of the month for server wipe": [ 1, 3 ], "Purge Start Hour, must be 24-Hour Time": 17, "Purge Start Minute": 0, "Purge End Hour, must be 24-Hour Time": 14, "Purge End Minute": 0, "Server Wipe Hour, must be 24-Hour Time": 14, "Server Wipe Minute": 0, "Use 24-Hour Time Format For Chat": false, "Date Format for Chat": "MM/dd/yyyy", "Sound Library API support. To play original Sound prefab, leave it empty. Example command: audio.message sendall fileName ": "audio.message sendall Purge", "Auto Display Interval (minutes)": 22, "Display Purge Start Date in Chat": true, "Display Purge End Date in Chat": false, "Display Server Wipe Date in Chat": true, "Hex Color for Purge Start Message": "#FF0000", "Hex Color for Purge End Message": "#FF4500", "Hex Color for Server Wipe Message": "#008000", "Chat Prefix for Purge Messages": "[RoguePVE]", "Hex Color for Chat Prefix": "#FFA500", "Use Notify Plugin for Messages": true, "Notification Type for Notify Plugin": 0, "Custom Command for Purge Time Reminder": "pt", "Chat command for End Purge": "endpurge", "Console command for End Purge": "endpurge", "Enable Last Week Check, checks to see if Facepunch force wipe is the following day or not if you have the last week of the month selected in the config if it is not forcewipe purge will be skipped and run the day before force wipe.": true }