You will need to update your Locale_EN.yml Rewards.yml and Schedule.yml(if you will use daily rewards feature) before using this version properly
Made like 80% recode for plugin. Entirely changed how plugin works, how questions handled, how rewards are picked, how scheduler works, what took quite some time as this pretty much to create it from scratch. Ok, now about changes:
Added option to start any game mode with specific question category or reward category (optional), This should look some think like this: /tryme qmode -c Default -r SimpleRewards
If you are running scheduler it wont stop until question answer time will end.
Changed locale file handling, deleted some messages and added new ones. You will need to update it!
Changed how sign creation are being handled, now you can just place it, write what you want and you are done. Text looks something like this:
Code (Text):
[tryme]
qmode
answers
desc
4 signs below it (if present) will fill up with names to.
If you want to delete top list of signs, just break top sign.
Changed question info from only /tryme to /tryme info, same as it was for admins, now there is only one command and if you have tryme.answers permission node you will see answers.
Added /tryme stats [nickname] command which one will show statistics of player.
Now fun part. Added so called "Daily rewards" feature. It really customizable feature. You can set up hourly/daily/weekly/monthly rewards.
Code (Text):
'ThisIsDaily':
Mode: Questions
RewardTimeRange: 1440
AnnounceOn: '12:00:00'
WeekDays:
- All
MonthDays:
- All
Rewards:
1:
RewardCategory: 'Daily'
RewardName: 'First'
2:
RewardCategory: 'Daily'
RewardName: 'Second'
3:
RewardCategory: 'Daily'
RewardName: 'Third'
BroadcastMessage:
- '&2----------&e ========== &6TryMe &e========== &2----------'
- '&eCongratz for best quiz game players from last 24 hours!'
- '&eFirst place gets &3[1name] with [1points]!'
- '&eSecond place gets &3[2name] with [2points]!'
- '&eThird place gets &3[3name] with [3points]!'
- '&2----------------------------------------------'
Its quite complicated at start, but once you will st it up, it will do all job for you You can specify which mode to use or maybe 'All' of them, what is time range in minutes from announced moment, when to announce, on which week days to announce, same as regular scheduler, on which month days to announce. Rewards will determine how many placed you want to reward and which rewards you want to give (again there should be separate section in config file). If you will have 10 entries, 10 people will be rewarded, if you will have only 1, then 1 will get reward. Simple. For message broadcasting, this will be shown when scheduler kick in, so you can give custom message at this time and give player names by place they will take and points/questions they have. First planer name is [1name] and points [1points], second [2name] and so on. If player is not only when this scheduler kicks in, then he will get rewards after 2min on next login with appropriate messages from reward.
Added aditional section in rewards file:
Code (Text):
DailyRewards:
Daily:
First:
Money: 1000
PrivateMessages:
- '&3[player] &2You have are best quiz game player from last 24 hours!'
- '&3[player] &2For this you have got 1000 money!'
Second:
Money: 800
PrivateMessages:
- '&3[player] &2You have are second best quiz game player from last 24 hours!'
- '&3[player] &2For this you have got 800 money!'
Third:
Money: 600
PrivateMessages:
- '&3[player] &2You have are third best quiz game player from last 24 hours!'
- '&3[player] &2For this you have got 600 money!'
this is separate from casual rewards just to avoid mixing with them when giving regular rewards and for simpler use. All daily rewards are in same format as usual ones, just one difference that there is no Chance variable in there.
Changed bunch of other small stuff what i cant remember