Configuration

Configuration

ScavengerHunt will automatically generate a config file in plugins/ScavengerHunt/config.yml.

Items/Rewards

This file contains 2 lists of items, which represent the items required and the rewards given.

Each item in the lists should look like this (data value is optional):

<ITEM ID> [QUANTITY] [DATA]

Scheduler System

The scheduler system uses cron scheduling. The default setting runs the scavenger event every hour. The asterisks indicate the following (in order): (minute) (hour) (day of month) (month) (weekday) (year)

Here are a few other examples:

Run every minute:

schedule: "* * * * *"

Run every 2 hours at :30

schedule: "30 0/2 * * ? *"

Every day at noon:

schedule: "0 12 ? * 0 *"

Visit this page for more formatting help. Leave a comment on the main page if you need assistance with this.

Default Config

# ID - Amount - Data Value

items:
  - 4 10

# Number of items for random item selection ; 0 to disable
# X number of items will be selected from the items listed above
# E.g. if 8 items listed, and numOfItems = 3, then 3 of those item/
# amount pairs will be chosen and used.
numOfItems: 0

# Mob - Quantity
mobs:
  - pig 1
  
# Number of mobs for random item selection ; 0 to disable
# X number of mobs will be selected from the mobs listed above
# E.g. if 8 mobs listed, and numOfMobs = 3, then 3 of those item/
# amount pairs will be chosen and used.
numOfMobs: 0

# To enable riddle mode. Riddle mode replace objectives with set messages.
# If you enable this, make sure the riddles match up with each individual
# objective.
riddleMode: false

# Put riddles here, if riddleMode enabled. Note that if quantity is important, 
# that you specify that in the riddle (see riddle 2 in default config).
riddles:
  - "1. First riddle (e.g. I'm like stone, but cracked!)"
  - "2. For example, for 10 of an item, you might want to put (10) at the end"
  
# ID - Amount - Data Value
rewards:
  - 357 1

# Set enable regions to true if player must be within region to win
enableRegions: false
regions:
  - WorldName:RegionName

# Runs for x seconds ; 0 to run until winner
duration: 0 

# Money awarded to winner (Must have Vault to use!)
money: 0

# Enable/disable short message mode (does not display items/rewards/riddles globally)
shortMessageMode: false

# Scheduler setting. See config page on dev bukkit. Default runs hourly.
schedule: "0 * * * *"
enableScheduler: true

Comments

Posts Quoted:
Reply
Clear All Quotes