GiftEvents
About
This plugin handles giving out gifts to players when they join on certain types of days:
- Their birthday if registered
- Their first played anniversary
- Arbitrary defined dates
For any event an announcement can optionally be made to all players. For instance, for their birthday you might configure a message letting everyone know its their birthday. Gifts can optionally be received after an event should the player miss logging on. You can configure any number of items to give to a player and each item can have any number of enchantments. Items are given when the player logs on.
Safeguards are in place to keep a player from changing their birthday to get additional gifts and to keep announcements from occurring too frequently. Even if the player changes their configured birthday to another date they will not receive another gift till the following year.
McStats
GiftEvents is using McStats to collect some data such as operating system, java version, Amount of players and some more.
You can learn more about it here.
You can disable it in the config file in the plugin directory.
Screenshot
Commands
- /birthday get - Gets a player's birthday if set
- /birthday set MM-dd - Sets the birthday for a player
- /anniversary - Gets a player's first play anniversary, the date when they first joined the server
- /events list - Lists all configured events and their dates
- /events info - Detailed info about an event, including which gifts are given
- /events give - Admin command to give the items from an event to a player
- /events reset - Admin command to reset the gift status of a player for an event
- /events reload - Reloads the events config file from disk
Configuration
The are a few options in the config file, but most modifications take place in the events file. Both contains plenty of comments and examples to help you get started configuring events.
When configuring items use either the Minecraft item id number or a name as it appears in the Bukkit Material class documentation. For enchantments you can again use a numerical enchantment id or the enchantment's name in the Bukkit Enchantment class documentation. In case of spawn eggs use 383 as ID and the entity ID as damage value. All entity types can be found in the official Minecraft wiki.
When testing a configuration use the "/events reload" command to check for errors without needing to restart the server.
Permissions
The permissions are very simple and allow you restrict access for certain users:
- giftevents.birthday - Default: true
- giftevents.anniversary - Default: true
- giftevents.events - Default: true
- giftevents.incremental - Default: true
- giftevents.admin - Default: false
Any chance on adding option to allow player to recieve the items only in a certain world?
I got a Creative world with separate inventory. Had a player that recieved his git there and he was unable to take it to the survival world.
Or am i able to do this by neglecting the permissions?
like --giftevents.birthday
in certain worlds.
Thanks!
Seems like a nice plugin, so i tested it on a 1.11.2 spigot server.
It gives the error:
GetOnlinePlayers() Method is used. Might want to change that.
If done.. i'm going to use this for my server :)
*Fixed typo & added spoiler
Works now! Thanks!
I have first join set to false and players still get a gift when they first join, to fix that I made the gift just dirt and advance-events I added 365, 720, 1095 so on to give Anniversary gifts. Hope in the near future that would be fixed.
@keeganjohn
Hey glad to hear that you like GiftEvents.
I tested your event on my server and it worked perfectly fine.
Have you tested other events?
Check the /events list, the /events give and the /events info command on the Survival-Anniversary.
Any error or warning in the console?
Hi, I love this plugin, but I'm having some trouble with creating my own event. I believe I have it set up right, but it's still not working so please help. my events file is on This Pastebin , I am trying to create the event "Survival Anniversary"
@Ironic8b49
Sorry I cant do anything about that. The event is set to Belated: True. Means that players get a gift because they were not online on the last anniversary date. You could fix it by setting Belated to false. But then the event will not be belated in the future which is not really a solution.
just was told that players are getting the first_join_gift which I have it set to false. This only gives to players who have logged into the server before I installed your plugin and when it's their first logging to the server with the plugin, any ideas on how to fix?
@Ironic8b49
The spamming issue is finally fixed now. Thanks for your support with your files. Was not possible to find the error without them.
@Ironic8b49
The spamming issue is a really strange one. It has happened multiple times now.
The birthdays are saved in the events_info.db. If you delete it you have to set the birthdays again. Also. The file is used for incremental events.
If you have an IncrementalEvent with 7 days, you have to join 7 times on different days.
Please send me your events_info.db, events.yml and your config file to [email protected]
Getting a spamming issue with the all gifts, if one was to log out and back in they keep getting the gift, birthday, anniversary, etc.. I have a fresh config file and events file made changes by only adding events and customizing the advanced-events. Had this issue before don't recall what I did or how I fixed it?
getting this error at bootup now [09:17:16] [Server thread/ERROR]: [GiftEvents] events section not found in configuration, could not enable events
What to do to fix?
@Aubli
Guess the problem was not the config file but my events.yml I deleted that file and now it works.
Guess my question is do I need to delete events_info.db and have them enter their birthdays again or will that file be ok?
Also if one the incrementalEvents is 7 days does the player have to log in 7 different days or just 7 days pass?
@Ironic8b49
Please post your config.yml and events.yml file.
getting this error at bootup now [09:17:16] [Server thread/ERROR]: [GiftEvents] events section not found in configuration, could not enable events
What to do to fix?
Just picked it up. I will be testing it later this evening after my homework is done. Thanks so much for this.
@jh93267
I implemented your requested feature and uploaded a new version.
After it is approved please test it out and tell me what you think. It probably has a lot of errors and could misbehave. It is currently in beta and should not be used in a productive environment!
Awesome, thanks for the quick reply. I will keep checking in to see how things are going.
@jh93267
It is currently not possible but your Idea is really good.
I will add something for you.
Thanks for the plugin, my family really likes it. The question I had for you is this: Can you set up multiple login events? Example: day 1 they get a gift, day 2 they get another gift (different gift), and so on. This would allow one to set up daily gifts based on the day they joined the server and in a sense be used to accumulate days and gifts. In any case if this is possible please let me know. Thanks.