configuration/Rewards
Usage
Installation | Permissions | Commands | Signs
Writing Quests
Basic Configuration | Setup | Requirements | Tasks | Rewards
Rewards are the ultimate goal of any quester, they include money, health, food, items, levels, permissions, and even console commands which allows qQuests to give permissions, levels in heros, xp, and do anything runnable by the console.
Health
Heath can be given to/taken from a player onSomething.
onJoin: message: Yay! Go find me some diamonds! health: 20 onDrop: message: YOUR DEAD!@###$@!$@ health: -20 onComplete: message: Thanks! Have a heart of health! health: 2
Hunger
Food can be given to/taken from a player onSomething.
onJoin: message: Yay! Go find me some diamonds! hunger: 20 onDrop: message: YOUR STARVING NOW TRAITOR!@###$@!$@ hunger: -20 onComplete: message: Thanks! Have a ham of hunger! hunger: 2
Items
Items can be given to/stolen from a player onSomething.
onJoin: message: Yay! Go find me some diamonds! Here is an iron pickaxe to mine them! items: - 257 1 onDrop: message: GIVE ME BACK MY PICKAXE(If you have it)!@###$@!$@ items: - 257 -1 onComplete: message: Thanks! Have a stack of dirt, orange wool and a apple! items: - 3 64 - "35:1" - 260 1
Commands
Commands are run by the console onSomething. The `player variable is replaced with the players name when the command is run.
onJoin: message: Yay! Go find me some diamonds! Don't use the creative mode I just gave you or anything ;) commands: - gamemode 1 `player onDrop: message: YOUR DEAD!@###$@!$@ commands: - gamemode 0 `player - kill `player onComplete: message: Thanks! Your gamemode is still creative because commands are run in order. commands: - gamemode 0 `player - gamemode 0 `player - gamemode 0 `player - gamemode 1 `player
Money
This reward REQUIRES VAULT AND AN ECONOMY PLUGIN! It allows one to give or take money from a player onSomething.
onJoin: message: Yay! Go find me some diamonds! money: 0.01 onDrop: message: Aww :( money: -50 onComplete: message: Thanks! Now I can feed my lava dragon! ;) money: 23.54
Node | Values | Description |
---|---|---|
health | Integer from -20 to 20 | Amount of health to give to a player (If negative, it is taken from a player) [1=half heart] |
hunger | Integer from -20 to 20 | Amount of food to give to a player (If negative, it is taken from a player) [1=half ham] |
items | List of items | Amount of a specific item to give to a player (If negative, it is taken from a player) |
commands | List of commands | Commands to execute via console |
money | Float | Amount of money to give to a player (If negative, it is taken from a player) |