Reset Server Rewards player RP data on wipe, or by command.

Supported Games
GameServerKingsGameServerKings
depends on

About Server Rewards Wipe

Simple plugin to allow anyone using Server Rewards to wipe player RP with server wipe, which is a feature not available natively within the Server Rewards plugin.

Permissions

  • serverrewardswipe.admin (To use clearrpdata command)

Commands

Trigger a RP wipe at any time while server is running (prefix with / to use in-game):

  • clearrpdata

Config Options

"Reset ServerRewards player RP on wipe": true/false

Enable/disable clearing RP on new save (wipe)

"Backup player RP before wiping": true/false

Enable/disable backup player RP data before clearing (backs up to "/data/ServerRewards/backups/playerbalancesyyyy-MM-ddHH-mm-ss.json")

"Call 'server.save' after wiping so SR writes new data to disk immediately (protects against server crash)": true/false

Enable/disable immediate server save after clearing RP so Server Rewards writes the new data to disk immediately. If disabled it is written on the next natural server save. Enabling protects against server crashes that would then cause RP clearing to fail.

Default Config:

{
  "Options": {
    "Reset ServerRewards player RP on wipe": true,
    "Backup player RP before wiping": true,
    "Call 'server.save' after wiping so SR writes new data to disk immediately (protects against server crash)": false
  },
  "Version": {
    "Major": 2,
    "Minor": 0,
    "Patch": 0
  }
}
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.