BirthdayGift
Compatible with Bukkit 1.5.2, 1.6.1 & 1.6.2
BirthdayGift rewards players when they login on their birthday and notify everyone of the player's birthday. Players can set their birthday and can receive configurable rewards (optional) when they login on their birthday. The player can also have a special login message (optional) for the day and a birthday broadcast message can be configured to celebrate the special day (sent only on their first login of their birthday).
This is also my first real Bukkit plugin, so all suggestions are welcome :)
Features:
- Birthday data is stored in a SQLIte DB (with SQL injection protection)
- Players can configure their own birthdate
- Players cannot change their birthday once set (admin can)
- Players cannot set their birthday to "today" (admin can)
- Rewards are claimed by the player (/bgift claim) to preventing receiving items in creative worlds
- Reward can be any number of items and/or economy reward (requires Vault)
- Initial login broadcast is configurable and can be disabled
- Custom join message is configurable and can be disabled
- Gift message for player is configurable and can be disabled
- Full birthday management for admins (info, delete, set, reset)
Commands:
- /birthday - Main basic player command for checking/setting their birthday.
- /bgift claim - Claim your birthday gifts
- /bgift info <player> - Check the player's birthday and "last gift received" date.
- /bgift set <player> <dd-mm-yyyy> - Set the player's birthday for them.
- /bgift reset <player> - Reset the "last gift received" date (player can receive gift again).
- /bgift delete <player> - Completely removes the player's birthday record.
- /bgift stats - Show some statistics on the birthday data
Permissions:
- birthdaygift.* - Give ALL permissions (be careful!)
- birthdaygift.use - Allow player to use /birthday command
- birthdaygift.claim - Allow player to use /bgift claim (you should disable this in creative worlds)
- birthdaygift.info - Allow player to use /bgift info
- birthdaygift.set - Allow player to use /bgift set
- birthdaygift.reset - Allow player to use /bgift reset
- birthdaygift.delete - Allow player to use /bgift delete
- birthdaygift.stats - Allow player to use /bgift stats
TODO:
Add "manual reward claim" feature to prevent players receiving rewards in creative worldsAdd stats feature to provide interesting info about birthday dataShow player's age on /bgift info*- Add custom commands which are triggered when rewards are given
- ...any suggestions?
Dev Builds:
Development builds can be acquired at the provided continuous integration server.
These builds have not been approved by the BukkitDev staff. Use them at your own risk.
See this in action?
You can try out this plugin on our family friendly survival server:
@add5tar
Hey, could you add custom commands? Thanks :)
@Vidsify
Interesting idea, I could make it possible to issue command rewards but to execute another command when their birthday is over would take a lot more work. The best thing to do would be to use a permission manager with time-based permissions (eg. PEX) and then only give the player the rank for a specific time.
But at this point, I'm not planning to add command rewards unless I get more people asking for it. It's not something I need for my own server and I can't put the time into features I won't use sorry :/
What about making it so that the plugin can rank people up to have a Birthday rank for that day. Then when that day is over move them back to their original rank. :)
@griffenx
That sounds like a great idea, I might actually do that soon. I will be releasing a new version with several fixes, mysql support and also BungeeCord support (mysql DB be required for that).
Thanks for the suggestion.
Could we get an update that adds the ability to give items with custom names/lore as items in the bgift? It'd be cool to be able to give players exclusive named items.
@IchCraft033
Sorry for the late reply. I don't understand the problem. Can you please pastebin your config and let me know what's happening?
i set the birthday of today to test the messages but i only can see the "gift" message... Why ?
Uploaded BirthdayGift v1.4.0, waiting for Bukkit approval:
@griffenx
Sure, I will add a format option in the next version :)
Could we get an option to store birthdays in MM-DD-YYYY format for us Yanks?
@add5tar
That seems to be workin just fine, thanks your a legend!
@Melonking
I think I might have fixed the problem. Could you try the latest dev build (1.3.1, from the link above) and let me know if it's fixed?
@add5tar
Could it be a conflict? I have a clone of my server, one is the live server and one is on my desktop, one is Linux one is windows. Its the same error on both. There are also many other SQLite plugins that function just fine.
@Melonking
Oh sorry, I closed the ticket already because it's not something wrong with my plugin. The comment I wrote is as follows:
This plugin uses a SQLite database to store information. This error is caused by not having the right SQLite drivers installed on your server. This will vary depending on your OS. Please check with your specific OS provider on how to do this.
However, if you get stuck just let me know your specific OS details and I'll see if I can help you out.
The ticket I posted was removed, has it been fixed?
@tim740
Regular player's only need to use: /birthday <dd-mm-yyyy>
The /bgift set of commands are only really needed by admins/staff. I wanted to ensure the commands are unique so they didn't clash with other commands.
@soysuva
Yep! Absolutely :) It is compatible with 1.5.1 I use it on my own server with no problems.
Is this capable with 1.5.1?
@ThreadedProcess
I think it was because I used some JDK7-only methods, and also because this is my first real java project and it's the latest JDK ;)
Are you running Java 1.6 on your server?
Is there any particular reason why this is compiled against JDK7?