Skip to content
FlyingPikachu edited this page Mar 20, 2015 · 37 revisions

Configuration

When Quests is first run, configuration files will be created in the /plugins/Quests directory. Each YAML configuration may vary depending on the version of Quests. However, examples of default configs and their values are provided below.

config.yml

language: en
allow-command-questing: true
allow-command-quests-with-npcs: false
show-requirements: true
allow-quitting: true
ignore-locked-quests: false
debug-mode: false
generate-files-on-join: true
kill-delay: 600
accept-timeout: 20
snoop: true
show-npc-effects: true
npc-effect: portal
max-quests: 0
convert-data-on-startup: false
quester-blacklist:
  - UUID
  - UUID
  - UUID
  - UUID
Key Data Type Description
language string Which language file ending in ".yml" will be used. For example, a value of "fr" will result in "fr.yml" being loaded.
allow-command-questing true/false Whether or not players are allowed to accept and manage quests via command (e.g. /quests take SomeQuest).
allow-command-quests-with-npcs true/false Whether players can accept/manage NPC quests via command (e.g. /quests take SomeQuest).
show-requirements true/false Allow players to see requirements for quests.
allow-quitting true/false If players are permitted to quit quests after taking them.
ignore-locked-quests true/false Ignore locked quests when checking if a player has a quest.
debug-mode true/false Whether to print debug information if an error occurs while loading.
generate-files-on-join true/false Generate a player data files when that player first joins the server or only when they he/she first uses Quests.
kill-delay number How long (in seconds) a player should have to wait after they kill a player for a quest before they can kill that player again.
accept-timeout number How long (in seconds) a player should be able to accept/deny a quest before the prompt cancels automatically.
show-npc-effects true/false Play a particle effect near NPCs that have an available quest for a player within 32 blocks?
npc-effect string The particle effect to be played (ex. note, enchant, crit, spell, portal).
max-quests number Maximum number of quests a given player can have at any time.
convert-data-on-startup true/false Replace username references in player data files with UUIDs from Mojang's account database.
quester-blacklist list An unlimited list of unique user IDs (UUIDs) for players that are to be completely ignored by Quests.

data.yml

This configuration file is used to store which NPCs are to display GUIs to players and will be empty if no GUIs have been set. Don't edit this file unless you know what you're doing.

events.yml

events:
  ExampleEvent:
    message: <red>Event happened!
    potion-effect-types:
    - Speed
    - Jump
    potion-effect-durations:
    - 100
    - 25
    potion-effect-amplifiers:
    - 3
    - 2
  GoodJob:
    message: <green>Good job!
  DeathFail:
    fail-quest: true
  FishingStart:
    message: <yellow>Type 'rod' in chat to get a fishing rod!
  RodEvent:
    message: <green>Here you go!
    items:
    - name-fishing_rod:amount-1

quests.yml

quests:
  Miner:
    name: Stone Miner
    ask-message: <yellow>Could you mine <purple>10<yellow> blocks of <purple>Stone<yellow>, and deliver the <purple>10<yellow> pieces <yellow>of <purple>Cobblestone<yellow> to me?
    finish-message: <yellow>Well done. Here is your reward.
    redo-delay: 1800
    requirements:
      items:
      - name-wood_pickaxe:amount-1
      remove-items:
      - false
      fail-requirement-message: <red>You must have a <purple>Wooden Pickaxe<red> first.
    stages:
      ordered:
        '1':
          break-block-names:
          - stone
          break-block-amounts:
          - 10
    rewards:
      money: 1000
      quest-points: 1
  Hunter:
    name: Mob Hunter
    ask-message: <yellow>Kill an assortment of Mobs.
    finish-message: <yellow>Excellent. Here is a <purple>Diamond Sword<yellow>.
    requirements:
      quests:
      - Stone Miner
      fail-requirement-message: <red>Complete <purple>Stone Miner<red> first.
    stages:
      ordered:
        '1':
          death-event: DeathFail
          mobs-to-kill:
          - Pig
          mob-amounts:
          - 3
          finish-event: GoodJob
        '2':
          death-event: DeathFail
          mobs-to-kill:
          - Zombie
          mob-amounts:
          - 2
          finish-event: GoodJob
        '3':
          death-event: DeathFail
          mobs-to-kill:
          - Skeleton
          mob-amounts:
          - 1
    rewards:
      items:
      - name-diamond_sword:amount-1
      exp: 100
      quest-points: 1
  CatchFish:
    name: Catch Fish
    ask-message: <yellow>Catch some fish!
    finish-message: <yellow>Excellent. Here is some <green>experience<yellow>.
    requirements:
      quests:
      - Stone Miner
      fail-requirement-message: <red>Complete <purple>Stone Miner<red> first.
    stages:
      ordered:
        '1':
          start-event: FishingStart
          death-event: DeathFail
          chat-events:
          - RodEvent
          chat-event-triggers:
          - rod
          fish-to-catch: 5
    rewards:
      exp: 250
Key Data Type Description
name string A name for the quest. This is what the player will see.
ask-message string Prompt sent to the player when he/she attempts to take the quest.
finish-message string A message sent to the player upon completing the quest.
npc-giver-id The ID of the Citizens NPC that will hand out this quest.
redo-delay number Time (in seconds) that a player must wait before taking the quest again.
gui-display itemstack Item to be displayed as the quest's GUI item. Will show the ask-message as lore if no lore is set.
block-start location A block that the player can right-click on to take the quest. Format is "worldName x y z".
region string Name of a WorldGuard region that a player must be inside in order to accept the quest (via command).
event list The initial event to run when the player starts the quest.
requirements list Items and such required to being the quest. See "Requirements" below.
stages ordered list Data for each stage including items to deliver, string messages, et al. See "Stages" below.
rewards list Money, items, quest points, and other prizes to give the player upon completing the quest. See "Rewards" below.
Requirements
Key Data Type Description
items itemstack Items required to begin the quest.
remove-items true/false Whether the required items should be removed from the quester's inventory.
money number Amount of currency required to start the quest.
quest-points number Amount of Quest Points required to start the quest.
quests list Quests that must have been already completed to take the quest.
quest-blocks list Quests that, once completed, disable the player's ability to take the quest.
heroes-primary-class string Requires Heroes. Primary Heroes class needed to accept the quest.
heroes-secondary-class string Requires Heroes. Secondary Heroes class needed to accept the quest.
fail-requirement-message string Message to send to the player if the requirements are not met. This is necessary if a quest has any requirements.
Stages
Key Data Type Description
break-block-names list Material names of blocks that need to be broken
break-block-amounts list Amounts of blocks that need to be broken
damage-block-names list Material named of blocks that need to be damaged (hit)
damage-block-amounts list Amounts of blocks that need to be damaged
place-block-names list Material names of blocks that need to be placed
place-block-amounts list Amounts of blocks that need to be placed
use-block-names list Material names of blocks that need to be used (Such as levers, doors, buttons etc.)
use-block-amounts list Amounts of blocks that need to be used
cut-block-names list Material names of blocks that need to be cut (Right click w/ shears)
cut-block-amounts list Amounts of blocks that need to be cut
fish-to-catch number Number of fish that need to be caught
players-to-kill number Number of players that need to be killed
enchantments string Names of enchantments (for names, see below) that need to be enchanted to items
enchantment-item-names list Material names that the enchantments need to be applied to
enchantment-amounts list Number of times the enchantments need to be enchanted on the items
items-to-deliver itemstack Requires Citizens 2. Items that need to be delivered to an NPC (For how to format entries in this list, read here)
npc-delivery-ids list Requires Citizens 2. IDs of NPCs that the items must be delivered to
delivery-messages string Requires Citizens 2. List of random messages to print to the player when they deliver some (but not all) of the required items to the NPC.
npc-ids-to-talk-to list Requires Citizens 2. IDs of NPCs that need to be interacted with (right-clicked)
npc-ids-to-kill list Requires Citizens 2. IDs of NPCs that need to be killed
npc-kill-amounts number Requires Citizens 2. Number of times the NPCs need to be killed
mobs-to-kill list Names of mobs (for names, see below) that need to be killed
mob-amounts number Amounts of mobs that need to be killed
(Optional)locations-to-kill list World and Coordinates that the mobs need to be killed at, following this format: WorldName x y z
(Required if locations are put) kill-location-radii number Radii that the mobs can be killed around. e.g. 10 would be 10 blocks around the location.
(Required if locations are put) kill-location-names list Names of the locations (e.g. Cave) NOTE: do not try to put location-mob-killing with regular mob-killing in the same Stage
locations-to-reach list Locations that need to be reached, following this format: WorldName x y z
reach-location-radii number Radii around the locations that create a 'zone' the player can walk in and be considered 'at the location'. e.g. 10 would be 10 blocks around the location
reach-location-names list Names of locations (e.g. Cave)
mobs-to-tame list Names of mobs (for names, see below) that need to be tamed
mob-tame-amounts number Amounts of mobs that need to be tamed
sheep-to-shear list Colors of sheep (for color names, see below) that need to be sheared
sheep-amounts number Amounts of sheep that need to be sheared
password-displays list List of questions to ask the player that they must answer
password-phrases list List of answers that the player must type in chat
script-to-run string Name of Denizen script to be executed after the Stage is completed
objective-override string This will be shown to the player as their current objective, rather than what the objectives would normally show.
start-event string Name of Event (See Tutorial for creating Events)to fire when the Stage has begun.
finish-event string Name of Event to fire when the Stage is completed.
disconnect-event string Name of Event to fire when the player disconnects while on the Stage.
death-event string Name of Event to fire when the player dies while on the Stage.
chat-events list List of Events to fire when the player types respective chat triggers
chat-event-triggers list List of chat messages that fire respective events when the player types them in.
delay number Amount of time (in seconds) that the player must wait after completing this Stage, before the Quest will advance to the next one
(Optional) delay-message string Message sent to the player when the delay begins
start-message string Message displayed at start of a stage.
finish-message string Message displayed at the completion of a stage.
Rewards
Key Data Type Description
items list Item rewards (For how to format entries in this list, read here)
rpg-item-ids list Requires RPGItems. IDs of RPG Items to give to the player
rpg-item-amounts list Requires RPGItems. Amount of each RPG Item to give to the player
phat-loots list Requires PhatLoots. Names of PhatLoots to give to the player
money number Requires PhatLoots. Economy currency given as a reward
exp number Requires PhatLoots. Experience given as a reward
quest-points number Requires PhatLoots. Quest Points given as a reward
commands list Requires PhatLoots. List of commands to be executed by the server (You may put "" to refer to the player who completed the Quest. Leave slashes out.)
permissions list Requires PhatLoots. List of permissions to be given to the player (NOTE: You must have some sort of Permissions plugin installed, SuperPerms will NOT work)
mcmmo-skills list Requires mcMMO. List of mcMMO skills to level up
mcmmo-levels number Requires mcMMO. Amount of levels to level up

Skill names

Acrobatics All (Will give all mcMMO skills levels) Archery Axes Excavation Fishing Herbalism Mining Repair Swords Taming Unarmed Woodcutting

Clone this wiki locally