Repository navigation
v1.3.0
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
IsAmountIsRandomisfalse, then player will be rewarded the same amount asAmountproperty. - If
IsAmountIsRandomistrue, then player will be rewarded a random amountbetween 1 and Amount.
- If
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
- Example usage:
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.
- Example usage:
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).