Examples

Here is an milk the cow quest example.

milkQuest:
  type: MILK_ENTITY #It is quest's type.
  timeout: 60 #After 60 seconds, winners will be selected.
  rewards: #It is rewards section
    '1': #This commands will be run for 1st player
      - "say %player% is the winner! It just milken %value% cows"
      - "say and his reward is 32x apple!"
      - "give %player% apple 32"
    '2': #This commands will be run for 2nd player
      - "say %player% is second! It just milken %value% cows"
      - "say and his reward is 8x apple!"
      - "give %player% apple 8"
      #You can add as many as section like theese.
  notifybar:
    message: "Milk The Cow!" #The message
    color: GREEN #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarColor.html
    style: SEGMENTED_10 #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarStyle.html
    flags: #its optional
      - PLAY_BOSS_MUSIC #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarFlag.html

Here is an break diamond ore quest example.

diamondQuest:
  type: BREAK_BLOCK
  timeout: 60 #its in seconds
  material: DIAMOND_ORE #The material players should break.
  notifybar:
    message: "§aBreak diamond ore!"
    color: GREEN
    style: SEGMENTED_20
  firework:
    color: RED
    fade: WHITE
    flicker: true
    trail: true
  rewards:
    '1':
      - "say The first player who completed quest is %player%"
      - "say He just broke %value% diamond ores! His reward is a diamond pickaxe!"
      - "give %player% diamond_pickaxe"

Here is an caught fish quest example.

fishQuest:
  type: FISH #It is quest's type.
  material: RAW_FISH
  timeout: 60 #After 60 seconds, winners will be selected.
  rewards: #It is rewards section
    '1': #This commands will be run for 1st player
      - "say %player% is the winner! It just caught %value% fishes!"
      - "say and his reward is 32x apple!"
      - "give %player% apple 32"
    '2': #This commands will be run for 2nd player
      - "say %player% is the second! It just caught %value% fishes!"
      - "say and his reward is 8x apple!"
      - "give %player% apple 8"
    '3': #This commands will be run for 2nd player
      - "say %player% is the third! It just caught %value% fishes!"
      - "say and his reward is an apple!"
      - "give %player% apple 1"
      #You can add as many as section like theese.
  notifybar:
    message: "Caught Fish!" #The message
    color: GREEN #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarColor.html
    style: SEGMENTED_10 #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarStyle.html
    flags: #its optional
      - PLAY_BOSS_MUSIC #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarFlag.html

Here is an log quest quest example. Because there are different materials for each LOG. We use REGEX to target all material ending in "LOG".

brekLogQuest:
  type: REGEX_BREAK_BLOCK #It is quest's type.
  regex: ".*LOG" #Regex(Regular expression) to check for any match to the block's type
  timeout: 10 #After 60 seconds, winners will be selected.
  rewards: #It is rewards section
    '1': #This commands will be run for 1st player
      - "say %player% is the winner! It just break %value% logs!"
      - "say and his reward is 32x apple!"
      - "give %player% apple 32"
    '2': #This commands will be run for 2nd player
      - "say %player% is the second! It just break %value% logs!"
      - "say and his reward is 8x apple!"
      - "give %player% apple 8"
    '3': #This commands will be run for 2nd player
      - "say %player% is the third! It just break %value% logs!"
      - "say and his reward is an apple!"
      - "give %player% apple 1"
      #You can add as many as section like theese.
  notifybar:
    message: "Break Any Log!" #The message
    color: GREEN #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarColor.html
    style: SEGMENTED_10 #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarStyle.html
    flags: #its optional
      - PLAY_BOSS_MUSIC #https://hub.spigotmc.org/javadocs/spigot/org/bukkit/boss/BarFlag.html

Last updated