GiftOfTheDay

Summary

This plugin allows players to receive a "semi-random" reward on first login of the day. Items, stack and rate can be changed simply by editing the gifts.yml located in plugin/GiftOfTheDay. Originally developped in order to rewards players of my server (for being so great ! :D), I decided to share it with the minecraft community :).

gift.yml structure

  • Gifts:
  • 'rollChance':
  • 'item id':
  • amount: How many items you want to give
  • distribution: Either 'linear' or 'exponential' or 'normal'. Everything else will be considered as 'linear'

You can have a full example here

About distribution methods

  • linear: Regular distribution. You have as many chances to get the object as the amount you specified
  • normal: "Gaussian" distribution. Most of the time, you'll receive an amount close to the one you specified. But from time to time you might receive a very different quantity.
  • exponential: You receive at least the specified amount. You can also receive more.
  • invertexponential: Very often, you'll receive the specified amount. You can also receive more but chance decrease.

Permissions

  • gotd.admin: Allow to use both resegift and regift command
  • gotd.receive: Allow to receive the gift (doesn't work for the moment)

Commands

  • /regift <player>: Give another gift to specified player
  • /resegift <player>: Reset the last gift date for specified player

Planned features

  • None for the moments

Known issues

  • Exponential distribution can be improved in my opinion.

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

Categories

Members

Recent Files

Bukkit