Repository navigation
Releases: LiteralSoofa/PlaytimeRewards
Release list
v1.3.1
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).
v1.2.4
Fixed player not being removed from onlineMembers
v1.2.3
v1.2.2
- Uses SQLite instead of Json for storing player times.
- 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.