Random Rewards

Random Rewards

Feel like some players deserve something extra? Now you can just give them a random item by typing /reward <playername>
Just fill a list of items in the config file and write the reward message.
Or let players reward themselves, give them permission node randomreward.gift

Usage

Permission node: - randomreward.reward
Permission node: - randomreward.gift
Command: /reward <player>
Command: /gift

Future plans

Making the random item have a configurable chance of winning an item.
Making the stack size have a configurable max.

Example config

#  Color codes:
#  %0 - black        %a - Green
#  %1 - Dark blue    %b - Aqua
#  %2 - Dark green   %c - Red
#  %4 - Dark red     %d - pink
#  %5 - Purple       %e - Yellow
#  %6 - Gold         %f - White
#  %7 - Gray
#  %8 - Dark gray
#  %9 - Blue
#
#  PLEASE NOTE THAT YOU MUST INSERT A SPACE AFTER THE COLORCODE / OTHER
#
#  Other:
#  %player - The winning player name
#  %amount - The amount + reward paid

# Make your own reward message
rewardmessage: "%a %player won &6 %amount !"

# Make your own time out message
timeoutmessage: "%a You have to wait %time minutes before you can use this command again!"

# Set the time out in minutes between use of /gift
timeout: 10

# What is the maximum amount of items a player can receive
maxstack: 64

# What is the minimum amount of items a player can receive
minstack: 1

# Set item id's for items that can be won
items:
- "1"
- "2"
- "3"
- "4"
# Add potions like so:
- "373:8120"

Comments

Posts Quoted:
Reply
Clear All Quotes

About This Project

  • Project ID
    40240
  • Created
    May 31, 2012
  • Last Released File
    Jun 10, 2012
  • Total Downloads
    4,180
  • License

Categories

Members

Recent Files

Bukkit