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 Jan 23, 2015@isitgeorge
Any ETA for the variables?
-
View User Profile
-
Send Message
Posted Jan 10, 2015Running fine with no errors or issues on Spigot 1.8 13716d9-0e2396c
-
View User Profile
-
Send Message
Posted Jan 8, 2015@JRPenza620
I've not tested it, but probably. Let me know if it doesn't.
-
View User Profile
-
Send Message
Posted Jan 8, 2015Is this supported for 1.8?
-
View User Profile
-
Send Message
Posted Jan 1, 2015@CloudeLecaw
As far as I remember, colour codes are already supported.
-
View User Profile
-
Send Message
Posted Jan 1, 2015@dddylan98
%p is the only variable currently, I'll have a look at adding the ones you suggested.
-
View User Profile
-
Send Message
Posted Dec 29, 2014nice plugin im using it! cant wait for next version my players are all happy :D
-
View User Profile
-
Send Message
Posted Dec 28, 2014Idea:
This could be used for like saying: "%p just received a random gift of %a %i(s)!"
-
View User Profile
-
Send Message
Posted Jun 29, 2014@CamboSleezy
Not currently, its something I plan to add though.
-
View User Profile
-
Send Message
Posted Jun 29, 2014Anyway to add currency to this plugin?
I use Essential Econ
-
View User Profile
-
Send Message
Posted Jun 26, 2014@isitgeorge
@isitgeorge
oh I got it lol thank you
-
View User Profile
-
Send Message
Posted Jun 26, 2014@notynote
Seems there is a typo in the documentation, the permission is randomgift.receive :)
-
View User Profile
-
Send Message
Posted Jun 26, 2014The randomgift.recieve permission is not working with Groupmanager :(
I gave a permission to all player. randomgift.trigger randomgift.recieve
but when Randomgift trigger, only OP seem to have randomgift.recieve
Debug Mode shown that only OP is seen by plugin.
-
View User Profile
-
Send Message
Posted May 19, 2014@warthelm
I'll add it into the next release.
-
View User Profile
-
Send Message
Posted May 19, 2014Colour code compatibility would be nice.
-
View User Profile
-
Send Message
Posted May 18, 2014@maxlehot1234
You could give players Bottle o' Enchanting to gain XP with ID 384.
-
View User Profile
-
Send Message
Posted May 18, 2014Me i use iconomy, but is it possible to give XP level to players?
-
View User Profile
-
Send Message
Posted May 17, 2014@Gafry97
That is something I can look at, most likely via Vault. Which economy plugin do you use?
-
View User Profile
-
Send Message
Posted May 17, 2014Hi good job, can you pls add money to get cash not items!
-
View User Profile
-
Send Message
Posted Apr 26, 2014@bunnly
Sure, debug mode will let you know how many players (and their names) are eligible for a gift. So if it outputs additional players as well as your sons player, it may just be a coincidence.
You can also use the /randomgift gift command to test, instead of having to keep logging out and in again.