DailyBonus
DailyBonus- Daily Login Bonuses
Want to help update DailyBonus? Contact gomeow
This plugin give a bonus once a day to players who log in. The amount is configurable.
There is an option in the config file for a delayed time until they get the bonus. If the player logs out before getting the bonus, then it will remember that they didn't get the bonus yet for that day, and attempt to make them wait the time again.
You can also give items based off a list in the config file.
The plugin uses SuperPerms (all permissions plugins will work, is what this means) for Permissions and Vault for economy, so all plugins that support those will work with DailyBonus!
Watch the video!
The Tier system:
The tier system allows you to have as many tiers as you want, as long as you change the "Number of Tiers" option in your config.
How tiers work:
- Tier number, 1 being the lowest tier
- So the highest admins/ops/VIPs will be given the highest Tiers, while defaults/noobs get the lowly Tier 1.
Economy Bonus
- The economy amount will be given as long as Vault is enabled. If you don't use an Economy, then set the values to 0.
- Again, you NEED Vault to give an economy amount with DailyBonus.
- To have a random amount of economy, put the "base-values;random-amount" down. So "20;5" would give a random amount between 5 more or 5 less than 20, aka 15-25 currency.
Message:
- This message will be sent to the player when they get their DailyBonus. Color codes such as &6 and &4 work.
- (Full list here!).
- !amount will be replaced with the economy amount given.
- !type will be replaced with your currency, if available.
Items:
- This is a list of items the player will be given. "x;y" -> x being the item ID and y being the amount to give. So "266:5" would give 5 Gold Ingots!
- If you don't want to give any items, set one ID of 0 or just leave it empty.
- To give random items, set the line to "x;y;z", with x and y the same as above, and z being the max or min that will be added/subtracted from the y.
- To give items with a data value add a "-d" to the end of the item line, with the d being a data value.
- Example - "5;10;5-1" - This would give 5 to 15 wood planks (ID 5) with a data value of 1 (Darkwood).'
- Item Give Delay (In Seconds): This is how many seconds the plugin will wait to give the bonus. So if you set it to 5 minutes (300 seconds), the player must login and stay online for 5 minutes before getting the bonus. If they log out early, the timer will stop and they must wait another 5 minutes to get it for that day.
Permissions:
- dailybonus.tier.#
- # being the tier number. So 'dailybonus.tier.1', 'dailybonus.tier.2', 'dailybonus.tier.3', and so on.
- You can have an unlimited amount of tiers, just change the "number of tiers" option in the config accordingly.
- Players will not inherit the other tiers. For example - even if admin's with tier.2 were set to inherit the default groups tier.1 they would not get items from both sections.
Features:
- Daily amount given (configurable) when a player logs in each day.
- Permissions based on tier systems
- Custom message for each tier
- !amount is replaced by the actual amount in the message
- Item giving
- If the player's inventory is full, items will drop at their feet!
Commands
- '/DailyBonus reload' - Reloads the plugin - Permission 'dailybonus.reload'
Get Vault here if you are using an Economy plugin!
Roadmap:
- Suggest Stuff!
can you add a config to disable multiple reward for the same ip? example: if someone logs in, reward him, if someone else logs in with the same ip, flag as rewarded but give no reward :D
@itsatacoshop247
Glad to see that you're updating :) Hope you can implement the increasing-tier thing, like we talked about previously! Thanks and I hope it is all going smoothly!
7pm Saturday, June 30th - Starting work on update.
@GoldDigger1
just set the time of reward longer than the timeout to login is. so if they are logged in they get the reward if not they don't. And the plugin is Awesome!
Not compatible with xAuth :(
I get the money and stuff before logging in
EDIT: Nah, I don't wanna support offline mode stuff, everyone should buy Minecraft. :) DailyBonus is awesome btw :D
@Fr0zenFr0g
Current version should be working fine.
Working? Really like this. :/
Any estimate on when this update might be out?
@itsatacoshop247
Since some don't use mysql (like myself ;) ), I think <name>.yml would be a better choice if that satisfies the demands as well! :)
@itsatacoshop247
<name>.yml and mysql both work on larger scales and would work for me specifically.
@BrvtvsC
Will mySQL work better for you? Switching it over to the soon, as an option. I built it for my semi-private server for <40 users at first, so .yml wasn't an issue at first :P I may also do <name>.yml files too.
@Fanged15
This means you removed the items line. Needs to be "- 0;0" if you want no items (will be fixed in the next update). Also, please make a ticket next time.
When i log in, i get this error message: http://pastebin.com/X0U56ex3
It says enabling it and it gives us the coins, but why does it say that?
This plugin is nice, except it stores data for every player that connects to the server in one file. My server has about 1300+ people connect a day, and the plugin has to survey that entire (hundreds of kb) file every time there is a login, making this plugin unusable. The plugin should have an option to either log just players who have the permissions to receive rewards or divide the log up into per player files. As it is, this is unusable on a large server. Thank you for your time.
@Chaznuts
You may want to put in a ticket if you want him to add a feature.
That's fine. Are you implementing the increasing-tier idea with the next version as well?
Any status report on Lightning Giants yet? :)
Hey, slight delay in the next update, I'm adding optional mySQL support into it for those who want it.
@itsatacoshop247
That sounds good, but I would add "reset tier if day missed: true/false" in the config. I would prefer it to just stay at the current tier until they log on and earn it. If they miss a day, it will just reward them with that bonus the next day they log on, and so on so they won't feel as it's a chore to log on.. Just a little "bonus."
If that's possible, I will be very grateful! :) Thanks for continuing to stay on top of your plugins! Hope to see Lightning Giants up soon as well! ;)
@Chaznuts
Yeah its a tad confusing. I will remake a video explaining it, maybe. And yeah, I think I could add some sort of thing where it increases for that player every day they go on, and resets to lvl 1 if they miss a day.
@itsatacoshop247
Ohhhhh... wow I was thinking this plugin did something completely different. It only gives 1 tier (the higher tier) per permission node? It doesn't give tier 1 for day one, tier 2 for day two, etc? Seems like the person a few posts down had the same confusion... Any way you can implement what I was thinking? Making the rewards every day get better until it reaches the last tier and starts over at tier 1?
I swear I have never had so much confusion on a single plugin haha. Might want to rewrite the description... Clarify the delay and how the tiers work more or something! I think people see the tiers and they think the bonuses are going to change daily in ascending numerical order.
@Chaznuts
"Players will not inherit the other tiers. For example - even if admin's with tier.2 were set to inherit the default groups tier.1 they would not get items from both sections."
Once the plugin gives on bonus for a player that day, it will give no more bonuses. So what you want to do with the tier.* isn't really possible as of now. If it's really an issue, I guess I could add a config line to the plugin to turn that off in a future update.
heh, I use either players.yml or data.yml in my plugins, I always forget which uses what.