How to create a quest

In this section, we'll see step by step on how to create quest for the plugin.

A Basic quest in this plugin, looks like this ->

qdaily_fisherman: #quest's id

  display: "&bFisherman"
  description:
    - "&9Gather fishes from the sea!"
    - ""
    - "&eRequirement:"
    - " &8| &r&810x Cod"
  menu_item: "COD"
  
  reset_id: DAILY
  quest_type: FISH
  required_targets:
    - COD
  required_amount: 10
    
  rewards:
    - "[COMMAND] eco give %player% 200"
    - "[MESSAGE] &bGreat job %player%, you've completed the quest %quest_display%!"

identifier

At the top of the section, you can see the quest's id. This id MUST be unique throughout all the quest in all the files. This is what permit the plugin to identify this quest specifically.

display

This represent the display's name of the quest. This is what will be shown with the %quest_display% internal placeholder. This is also the name of the item representing this quest in the GUI.

description

Only for the GUI. Represent what whill be shown as the lore of the quest item in the GUI.

Only for the GUI. Represent the material of the quest item in the GUI. Must be a valid material name.

reset_id

Represent at which reset service this quest is attached to. Please refer to How to setup automatic reset if you don't know what that mean.

quest_type

Represent the action the player will need to do in order to progress in the quest. Refer to Quest Type to see a full list of all the valid types.

required_targets

Represent all the possible "targets" for this quest type. Targets depend on the quest type. Refer to Quest Type to see the required target type for each quest type. If you want this quest to target ALL the possible targets, just add "*" to the target list.

required_amount

Represent the number of the action needs to be done to consider this quest done.

rewards

Represent a list of reward that will be given/executed when the player finishes his quest. Please refer to Reward Processor to see a list of valid rewards.

Last updated