Skip to content

Releases: LiteralSoofa/PlaytimeRewards

v1.3.1

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 06 May 15:27

Update to TShock 6.1

v1.3.0

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 05 Mar 18:20

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).

v1.2.4

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 15 Jul 22:36

Fixed player not being removed from onlineMembers

v1.2.3

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 13 Jul 11:48

Fixes HM reduction

v1.2.2

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 12 Jul 13:56
  1. Uses SQLite instead of Json for storing player times.
  2. Can get more than a single reward with "getreward" command. (/getreward <amount|all>)

Note: If you're updating from an earlier version use the command "/updateplaytime" once. This will transfer old playtime data into the new database format. If your system doesn't support SQLite, stay with the old release.

v1.1.2

Choose a tag to compare

@LiteralSoofa LiteralSoofa released this 13 Apr 23:03

Initial release