RandomGift
RandomGift
Reward your active players!
Description
RandomGift randomly rewards a lucky online player with a gift when a fellow player logs into the server. RandomGift encourages players to be active and spend time playing on the server regularly throughout the day as they are rewarded.
RandomGift is fully customisable, including the gift pool, minimum players required to activate RandomGift and amount of cooldown time between each gift reward.
Default item pool
| Name | Quantity | ID | |
| Diamond | 1 | 264 | |
| Iron Sword | 1 | 267 | |
| Iron Shovel | 1 | 256 | |
| Iron Pickaxe | 1 | 257 | |
| Iron Shovel | 1 | 258 | |
| Iron Helmet | 1 | 306 | |
| Iron Chestplate | 1 | 307 | |
| Iron Leggings | 1 | 308 | |
| Iron Boots | 1 | 309 |
Permissions and Commands
| Description | Command | Permission |
| Allows player to trigger the RandomGift | N/A |
randomgift.trigger |
| Allows player to receive the RandomGift | N/A |
randomgift.receive |
| View amount of time remaining before RandomGift is active again | /randomgift cooldown |
randomgift.cooldown |
| Reset the remaining cooldown time | /randomgift reset |
randomgift.reset |
| Manually trigger RandomGift | /randomgift gift <trigger player> |
randomgift.gift |
| Reload the configuration file | /randomgift reload |
randomgift.reload |
| View last player that received a gift | /randomgift history |
randomgift.history |
| Notifications for Administrators | N/A |
randomgift.admin |
| Access to everything above | N/A |
randomgift.* |
Suggested Permission Setup
-
Administrators
randomgift.admin- Inherit Staff
-
Staff
randomgift.triggerrandomgift.cooldownrandomgift.resetrandomgift.giftrandomgift.reloadrandomgift.history
-
Players
randomgift.triggerrandomgift.receive
randomgift.* is also available to allow access to everything, recommended for Owners/Administrators.
Configuration
The configuration file can be found inside /plugins/RandomGift once the server has been started with RandomGift installed.
Old configuration files do not update themselves, you are required to either manually update the config file yourself or generate a new one and copy your previous configuration (more info).
You can view detailed configuration information here.
Future Features
If you have a suggestion for a future feature, drop it into the comments section.
Contributers
View the contributers that help keep RandomGift awesome!
Notes
Update check
RandomGift checks the version of itself against the latest available version on startup, this can be disabeld inside config.yml.
Data collection
RandomGift uses Plugin Metrics to collect anonymous statistic data about RandomGifts usage and sends it to http://mcstats.org/plugin/randomgift.

If you prefer, you can disable both the Plugin Metrics and sending of version data inside the configuration file as seen above. You can also disable Plugin Metrics globally inside its own configuration located at /plugins/Plugin Metrics/config.yml
Help RandomGift conquer the world on GitHub?
-
View User Profile
-
Send Message
Posted Apr 25, 2014@isitgeorge
Thanks. The permissions are set so everyone can trigger/receive gifts, but only one player seems to get them (my son, who loves it but there is grumbling from the other players).
I might be the low numbers, it's a private server for my son's friends, but it never gives a gift to anyone else unless my son isn't playing.
I'll try debug mode and see what's up. Let you know how it goes.
-
View User Profile
-
Send Message
Posted Apr 25, 2014@bunnly
The process is entirely random, however I've seen something similar happen when very few players had the randomgift.receive permission node. You can try enabling debug mode in the configuration, it will display each player it adds to the list in the console.
-
View User Profile
-
Send Message
Posted Apr 25, 2014Great plugin. One problem I'm having is it only seems to give gifts to the same player every time. The only time it changes to another player is if that first player isn't online, and then it only rewards the second player with gifts unless that person isn't playing, and so on.
I can't see any setting in the config file to truly make who gets a gift random.
Thanks
-
View User Profile
-
Send Message
Posted Apr 18, 2014@isitgeorge
I think there is problem with GroupManager, because I gave permissions, all-players set to true, and as i saw only OP have that permission. Now I set min-players to 0 and works fine.
-
View User Profile
-
Send Message
Posted Apr 18, 2014@Sprunkas
That would suggest not enough players have the randomgift.recieve permission OR the all-players config option is set to false. If not, could you open a ticket from the tab at the top of this page.
-
View User Profile
-
Send Message
Posted Apr 18, 2014@isitgeorge
[RandomGift] [DEBUG] Not enough players currently online
Although 30 players online
-
View User Profile
-
Send Message
Posted Apr 18, 2014@Sprunkas
You may need to edit the config, by default it requires 3 players to be online, otherwise it won't release any gifts. Give the debug option a go, it should give you an idea of whats going wrong and how far its getting.
-
View User Profile
-
Send Message
Posted Apr 18, 2014@isitgeorge
No, doesn't announce.
-
View User Profile
-
Send Message
Posted Apr 18, 2014@Sprunkas
Does it announce they've been given a gift? You can try enabling debug mode in the config to output extra information to the console.
-
View User Profile
-
Send Message
Posted Apr 18, 2014I'm using GroupManager, but players never gets a gift. What's the problem?
-
View User Profile
-
Send Message
Posted Apr 12, 2014@gamermomoe
Would you mind creating a ticket from the tab at the top so I can take a look at it? I suspect it will be something to do with the configuration.
-
View User Profile
-
Send Message
Posted Apr 11, 2014Ever since the update, I'm getting [RandomGift] true.
-
View User Profile
-
Send Message
Posted Mar 12, 2014@FearFree1
Yeah that's what I figured that out after posting that. That's what I'm currently using right now, but it would be much more simpler for it to be on one line. Thanks for the reply though.
-
View User Profile
-
Send Message
Posted Mar 6, 2014@gamermomoe
Not that it is the answer you are looking for, but you can fake the percentages yourself by adding the same item line multiple times. add 1 line for 1x diamond, and 4 lines for 5x iron, and you have effectively created a 20% chance of getting a diamond.
-
View User Profile
-
Send Message
Posted Mar 6, 2014Also along with a second item pool, could you add a way to set what chance the item is? Like 1 diamond would be 20% chance and 5 iron would be 35%. You could set it like
-
View User Profile
-
Send Message
Posted Mar 4, 2014@FlyingSquidwolf
We're actually working on this at the moment, stay tuned!
-
View User Profile
-
Send Message
Posted Mar 4, 2014Hey dude,
Is there a way to allow for enchanting the gifts? Also, naming them would be pretty sweet too±
-
View User Profile
-
Send Message
Posted Mar 3, 2014This looks like an awesome plugin, I'm going to implement it into my server. Thanks for updating it. I decided to look up a plugin like this because I watched this: https://www.youtube.com/watch?v=RHC-uGDbu7s
Thanks again for the plugin, hope you keep it updated.
-
View User Profile
-
Send Message
Posted Oct 27, 2013@Chikaze
Should work fine - I've added this to the description :)
-
View User Profile
-
Send Message
Posted Oct 27, 2013If I add "Lapis Lazuli Dye", what is the format it needs? 351,4 351#4 351:4