Skip to content

v1.3.0

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 05 Mar 18:20
· 1 commit to main since this release

Rewards are now more customizable!

1. Structure of the config file has been changed! Each reward now has its own properties:

  • A reward can be set up for both pre-hardmode and hardmode worlds.
  • Amount can be randomized:
    • If IsAmountIsRandom is false, then player will be rewarded the same amount as Amount property.
    • If IsAmountIsRandom is true, then player will be rewarded a random amount between 1 and Amount.

Here's an example config file:

{
  "TimeInMins": 0,
  "SwitchToHMMultiplier": 0.3,
  "Rewards": [
    {
      "ItemID": 4956,
      "Amount": 100,
      "IsAmountRandom": true,
      "IsPreHardmode": true,
      "IsHardmode": true
    },
    {
      "ItemID": 4978,
      "Amount": 99999,
      "IsAmountRandom": false,
      "IsPreHardmode": true,
      "IsHardmode": true
    }
  ]
}

2. Two new commands have been added to make it easier to add or remove rewards to the pool:

  • addreward <item ID or name> <amount> <is amount random> <is pre hardmode> <is hardmode>
    • Example usage: /addreward "nebula sofa" 420 false false true
  • removereward <item ID or name>
    • Example usage: removereward "nebula sofa"
    • Note: This command will remove all matching rewards with the same item ID. Be careful.

Note: The plugin itself doesn't check for (illegal) item amounts before giving the reward to the player. So, if you add a reward with Amount property higher than that item's max amount, players will still get the number you specified. This might trigger some anti-cheat plugins you have.

Note: You need to redefine your config file (PlaytimeRewardsConfig.json) after updating to this version. You don't need to reset or delete the database file (PlaytimeRewards.sqlite).