﻿v1.9
Notes:
  - This version breaks compatibility with plugins hooking into BetonQuest. I'm sorry for that.
    Ask devs to update these plugins.
  - The error reporting feature was improved. If you see a lot of error messages when reloading
    the plugin (not stack traces, just regular, human-readable messages), it's probably because
    there are real problems in your quests.
  - BetonQuest won't accept ".yml" extensions at the end of conversation names in "main.yml".
    If your conversations aren't working (the plugin says they don't exist), check if you have
    these extensions IN THE "MAIN.YML" file and remove them.
Fixes:
    * 'action' objective now detects fire interaction
    * 'empty' condition now skips armor and off-hand slots
    * Items can be used cross-package
    * New sound names are now used by default
    * Fixed doubled quest items when dropping them is blocked by another plugin
    * Lore and name now appear on heads and written books with custom data
    * Fix error when trying to add air (empty hand) with "/q item" command
    * Main page now can exceed a single page in the journal
    * The plugin will reconnect to the database if something goes wrong
    * Fishing objective now only accepts stuff from water
    * Properties in 'mobkill' objective (left and amount) has switched places
Changes:
    * Complete rewrite of item conditioning - read the docs to discover new features
      (previous syntax is still working without any behavior changes)
    * Books in items.yml now automatically wrap pages, like the journal and main page
    * Main page and entries in the journal can manually split pages with '|' character
    * New lines in conversations can be made with "\n"
    * Interval in 'delay' objective is now configurable
    * 'craft' and 'potion' objectives now use items defined in items.yml file
    * Potion items are now defined with 'type:' argument instead of data value
    * You can now use spaces between "first" options in conversations
    * Static events can now be fired with "/q event - eventID" command
    * Locations can have vectors defined directly in instruction strings
    * Locations can be variables which resolve to location format
    * Point condition can now check exact point amount with 'equal' argument
    * In 'chest' conversation IO items can be specified with durability values after a colon
    * Mobs spawned with 'spawn' event can have armor, items in hands and custom drops
    * Unbreakability of quest items can be disabled (if you want to use "unbreakable" tag instead)
    * Ranges in locations are now a separate argument ("10;20;30;world;4" is now "10;20;30;world 4")
    * "main.yml" is now the only required file in the package. Empty files can be deleted
    * Custom settings (i.e. EffectLib particle effects) are moved from "main.yml" to "custom.yml"
Additions:
    * Compatibility with Shopkeepers ('shopkeeper' event, 'shopamount' condition)
    * Compatibility with PlaceholderAPI ('ph' variable and 'betonquest' placeholder)
    * Compatibility with HolographicDisplays (holograms visible based on conditions)
    * Compatibility with RacesAndClasses (race, class, exp, level, mana conditions/events/variables)
    * Compatibility with LegendQuest (race, class, attribute, karma conditions/variables)
    * Compatibility with WorldEdit ('paste' a schematic event)
    * New condition 'riding' - check if the player is riding an entity
    * New condition 'world' - check the world in which the player is
    * New condition 'gamemode' - check player's game mode
    * New condition 'achievement' - check if the player has an achievement
    * New condition 'variable' - check if a variable matches a pattern
    * New event 'lever' - switches a lever
    * New event 'door' - opens/closes doors, trapdoors and gates
    * New event 'if' - run one of two events, depending on condition
    * New event 'movenpc' - move Citizens NPC to a location
    * New event 'variable' - set a variable in "variable" objective
    * New objective 'vehicle' - entering a vehicle entity
    * New objective 'variable' - lets players define their own variables for you to use
    * New objective 'kill' - kill players who meet specified conditions
    * New objective 'breed' - breed animals (only 1.10.2+)
    * New variable '%location%' - resolves to player's location
    * Keyword "unbreakable" can be used in items to make them unbreakable
    * When a conversation option is selected, a Bukkit event is called (for developers)
    * Chat can be paused while in conversation, it will display when finished
    * Objectives can be completed for players with "/q objective player complete"
    * Option 'full_main_page' controls if the main page is a separate page in the journal
    * Mobs spawned with 'spawn' can be "marked"; you can require marked mobs in 'mobkill' objective
    * Firework support in items
    * Relative package paths, where '_' means "one package up"

﻿v1.8.5
Fixes:
    * Objectives are now correctly deleted with "objective delete" event and do not
      reappear after "/q reload".
    * Objectives are no longer duplicated in the database when using "/q reload".

v1.8.4
Fixes:
    * Conversations are no longer started twice

v1.8.3
Fixes:
    * Events are no longer run in async thread when completing "password" objective
    * Replaced stacktrace with error message when objective is incorrect in "objective" event
    * Made color codes work with "one_entry_per_page" setting enabled
    * Fixed a bug where taken backpack items were not removed from the database
    * Quest items can now be equipped
    * "die" objective now correctly handles damage done to the player
    * Fixed error when conversation is started without any possible options
    * Fixed error when killing NPCs with equipment
    * Fixed problems with relogging while in conversations with "stop" option enabled
    * Fixed error when loading corrupted item from the database
Changes:
    * Updater is now based on GitHub Releases, no longer downloads major updates automatically,
      it is more configurable and can also download development versions with "/q update --dev"
Additions:
    * Added console message about the cause of "/q give" errors (tells you what is wrong with item
      instruction string)

v1.8.2
Fixes:
    * Fixed NPE when killing a mob without any "mobkill" objectives

v1.8.1
Fixes:
    * Removing journal entries from the database now works correctly
    * MobKill objective now correctly handles kills
    * Nested package names are now correctly resolved
    * The formatting at the end of every main page line is reset
    * Fixed Apache dependency problem
    * Material name is no longer displayed in "chest" GUI conversations
    * Fixed "notify" option in give/take events

v1.8
Notes:
  - As always in big updates, compatibility with plugins hooking into BetonQuest is broken.
    You need to check if everything is working.
Fixes:
    * Die objective now reacts to death caused by other plugins
    * Static events now are started correctly
    * Static events now are canceled correctly
    * Action objective now correctly checks locations
    * Combat tag is removed after death
    * Block, Craft and MythicMobs MobKill objectives now correctly save data
    * Take event now correctly takes items from inventory, armor slots and backpack
Additions:
    * New variable system in conversations (check out the documentation)
    * More options for journal, including one entry per page and removing date
    * Compatibility with mcMMO (level condition and experience event)
    * Compatibility with EffectLib ('particle' event, NPC particles)
    * Compatibility with PlayerPoints (points event and condition)
    * Compatibility with Heroes (class and skill condition, experience event,
      Heroes kills in 'mobkill' objective)
    * Compatibility with Magic ('wand' condition)
    * Compatibility with Denizen (running task scripts with 'script' event)
    * Compatibility with SkillAPI (class and level condition)
    * Compatibility with Quests (checking for done quests, starting them,
      custom event reward, custom condition requirement)
    * Optional prefix for conversations (contributed by Jack McKalling)
    * Optional material for buttons in "chest" conversation IO
    * Configurable main page in the journal
    * New argument in objectives: "persistent" - makes them repeat after completing
    * New condition 'check' - allows for specifying multiple instructions in one
    * New condition 'objective' - checks if the player has an active objective
    * New condition 'score' - check scores on scoreboards
    * New condition 'chestitem' - checks if a chest contains items
    * New event 'run' - allows for specifying multiple instructions in one
    * New event 'givejournal' - gives journal to the player
    * New event 'sudo' - forces the player to run a command
    * New event 'compass' - point player's compass to a location
    * New event 'cancel' - cancels a quest (as in main.yml)
    * New event 'score' - modify scores on scoreboards
    * New events 'chestgive', 'chesttake' and 'chestclear' - put and remove items in chests
    * New objective 'logout' - the player needs to leave the server
    * New objective 'password' - the player needs to type the password in the chat
    * New objective 'fish' - catching fish
    * New objective 'enchant' - enchanting an item
    * New objective 'shear' - shearing a sheep
    * New objective 'chestput' - putting items in a chest
    * New objective 'potion' - brewing a potion
    * New commands: /cancelquest and /compass - directly open backpack sub-pages
    * New subcommand '/q delete' - delete all specific tags/points/objectives/entries
    * New subcommand '/q rename' - rename all specific tags/points/objectives/entries
    * New subcommand '/q give' - gives you an item from items.yml
Changes:
    * Administrative messages are now English-only in new installations
    * Journal event can remove entries from the journal
    * In conversations, %quester% variable changed to %npc%
    * In inventory GUI there is NPC's text in every option, for convenience
    * Conversations can point to NPC options in other conversations within the package
    * You can use spaces between events, conditions and pointers in conversations
    * All tags and points are internally associated with a package now
    * Some conditions are now static and persistent (just like events)
    * Point event can now multiply points
    * Vault Money event can now multiply money
    * Journal event can now use "update" argument for updating variables on the main page
    * Packages can now be moved to another directories
    * Quest cancelers are now defined in a more convenient way
    * /q command renamed to /betonquest, /j to /journal; previous forms are now aliases
    * Conditions and events in objective instructions (and conditions in event instructions)
      can now be defined with "condition:" and "event:" argument (without "s" at the end)

v1.7.6
Fixes:
    * Conversation can no longer be started multiple times at once if it happens
      on the same tick
Additions:
    * Dutch translation by Jack McKalling

v1.7.5
Fixes:
    * Restored compatibility with MythicMobs 2.1.0

v1.7.4
Fixes:
    * Fixed error when player was quitting with active "stop" conversation while he had not
      changed his language with /ql command
Changes:
    * Inventory GUI will close itself if there's nothing left to display

v1.7.3
Fixes:
    * Combat tagging does not work if the attack has been canceled
Changes:
    * Options in conversation can also be defined using "event:", "condition:" and "pointers:"
      argument names (with and without 's' at the end). "text:" argument is unchanged.

v1.7.2
Fixes:
    * "mobkill" objective now displays correct amount of mobs left to kill
    * "delay" objective can be set to 0 delay

v1.7.1
Fixes:
    * Quests are loaded after other plugins register their types
    * Journal condition correctly resolves package names
Changes:
    * Updated French translation

v1.7
Notes:
  - BetonQuest no longer supports servers without UUID handling
  - There were a lot of changes since previous version, check carefully if everything is working
  - Compatibility with plugins hooking INTO BetonQuest is broken, they need to update
Fixes:
    * Objectives no longer mysteriously double events
    * Greatly improved performance in almost every aspect
    * Finally fixed issues with special characters on some servers
    * Fixed database saving/loading issues
    * Fixed player options in conversations being white on next lines when using tellraw
Additions:
    * Quest canceling system
    * New inventory GUI for conversations
    * Added the "random" parameter in "folder" event - choose randomly X events to fire
    * Action objective can be "canceled" - the click will not do anything
    * Added "static events" mechanism for firing events at specified time of the day
    * Optional message when the player is pulled back by stop option
    * Optional message for take and give events
    * Optional message when advancing in "block" and "mobkill" objectives
    * Variable system for quick changing quest parameters (for example location of a quest)
    * "/q vector" command for easy calculating location vector variables
    * New "empty" condition - amount of empty inventory slots
    * New "party" condition - manages the conditions in the party
    * New "monsters" condition - true if there are monsters in the area
    * New "clear" event - kills specified monsters in the area
    * New "region" objective - reach WorldGuard region
    * Blacklist of commands which cannot be used while in conversation
    * Option to disable compatibility with other plugins
    * Added remove_items_after_respawn option - for servers using keepInventory gamerule
Changes:
    * The plugin now uses package system: configuration has been moved into "default" package
    * Objectives has returned to "objectives.yml" - it's improving performance
    * The database is now updated in real time
    * All quests can (but don't have to) be translated into multiple languages
    * Players can change their language with /questlang command
    * Conversations with stop option are resumed when the player logs out and in again
    * Metrics are now toggled in PluginMetrics/config.yml
    * All conditions, events, objectives, conversations etc. are loaded when the plugin starts/reloads
    * Citizens NPC will stop when talked to
    * Quest blocks cannot be placed, quest items will not break
    * Conversations cannot be started while in combat
    * Cannot fight while in conversation
    * Tellraw conversations no longer spam the console
    * Mobs can be spawned with a name (spawnmob event, "name:" argument)
    * /q command is now more beautiful
    * Removed unnecessary argument prefixes from conditions and events
    * Removed "tag:" from objective instruction strings
    * Conversations no longer need those empty lines everywhere ('')
    * Dependencies updated: WorldGuard/WorldEdit 6.1, MythicMobs 2.0.4

v1.6.2
Fixed errors on data loading when MySQL is being used.
Changes messages system to use simple file as default. If you want to use advanced translation
just rename "advanced-messages.yml" to "messages.yml".

v1.6.1
Fixed errors on updating journals when using MySQL.

v1.6
Notes:
  - There is a bug/feature in 1.8 which adds '§0' at the end of every line in books generated
    by plugins. This breaks the conditions/events based on books with more than one line of text.
    The detailed instruction on how to work it around is in "Other important stuff" chapter, in
    the part about items.
Fixes:
    * Items given by event that don't fit in the inventory will now drop instead of being deleted
      This does not apply to quest items, they will be added to backpack
    * Events fired from conversations won't throw async errors
    * Conversation can be started after plugin's reload without relogging
    * /q reload no longer lags the server
    * Corrected description in /q command
    * Added input validation for global locations - if event is incorrect it will display an error
      instead of breaking the whole functionality
    * The plugin should run fine on machines not supporting some special characters
    * Inverted item condition now behave correctly
    * Time condition now checks time correctly
Additions:
    * Added backpack for storing quest items, which cannot be dropped in any way
    * Added database backups
    * Added prefix for the database. New installations will use "betonquest_" prefix for tables,
      existing configuration will use empty prefix to maintain compatibility with other programs
    * Players can chat while in conversations by prefixing their messages with '#' character
    * New "random" condition - true with specified probability
    * New "sneak" condition - true if player is sneaking
    * New "journal" condition - true if player has journal entry
    * New "testforblock" condition - true if block at given location matches given material
    * New "arrow" objective - completed when arrow hits the specified target
    * New "experience" objective - completed when player reaches certain level
    * New "npcinteract" objective - completed when player right-clicks Citizens NPC
    * New "damage" event - damages the player
    * Skript support (event, effect and condition)
    * WorldGuard support (region condition)
    * Errors are logged to the "error.log" file in "logs" directory
    * Debug option in config.yml for logging plugin's activity to "debug.log" file
    * New commands for opening backpack: b, bb, backpack, bbackpack or betonbackpack
    * Items are now aware of leather armor color, head owner and enchantments in books
Changes:
    * Added and changed a lot of subcommands in /q command:
      - event and condition can be run for every online player
      - tag, point, objective and (new) journal can edit every (even offline) player
      - config (new) can set configuration files from command line
      - backup (new) backups the whole configuration and database
    * Folder event now runs these events even after the player logs out: command, tag, objective,
      delete, point, setblock
    * Changed /j command to open the backpack instead of just giving the journal
    * Tellraw clicking on options in conversation now ignores old (used) options
    * Using color codes in journal entries is now possible
    * Give/take events and item condition can now check for multiple items with syntax 'give
      stick:2,stone:4,sword'
    * Give/take events and item/hand conditions can now check for items only without
      enchantments/effects/name/lore etc.
    * Inverting condition is now done by prefixing their name with "!" (in the place where you use
      them, like conversation, not in conditions.yml)
    * Configuration updater is no longer based on plugin's version
    * Backup files are now kept in "backups" directory, old ones are moved to it
    * Changed internal structure of the code (may matter to developers - QuestEvent, Condition
      and Objective classes has been moved from "core" package to "api", update your imports)

v1.5.4
This version is almost the same as 1.5.3. The only difference is that it can load database backups
created by 1.6 version. When updating to 1.6, the database format will change, so it won't be
possible to go back, unless by loading the backup using this version of the plugin.

v1.5.3
- Small fix of /q purge command not working on offline players.

v1.5.2
- Fixed errors that were spamming the console when a player with active Location objective was teleporting to
  other worlds.

v1.5.1
Changes:
    * Multiple tags in one event are now possible
    * Change /q event command to run from console
    * Add color codes to item's name and lore
    * Fix "stop" option in conversations not working
    * Fix NPE on unknown answer in conversations

v1.5
Changes:
    * Added support for MythicMobs and Vault (see wiki for more info)
    * AutoUpdater is now enabled by default! If you want you can change this and reload the
      plugin, nothing will be downloaded in that case
    * Books saving format has changed. All books were automatically converted, but you need to check them if
      everything looks like it's supposed to.
    * Command event accepts multiple commands separated by "|", eg. "command say beton|say quest"
    * Event command now accepts optional <name> argument at the end; this will fire event for <name> player.
      eg. "/q event wood_reward Steve"

    * Journal title and lore can now use colors (&4 etc.) and journal is colorful; options in config.yml
    * Added aliases for /q command: bq, bquest, bquests, betonquest, betonquests, quest, quests
    * Added aliases for /j command: bj, journal, bjournal, betonjournal
    * Objectives are now defined directly in event instruction, not in objectives.yml (which
      was deleted, if you want to restore something check the backup)
    * Replies in conversations are now optionally clickable (tellraw option in config.yml)
    * Added permission for starting a conversation: betonquest.conversation
    * Conversation starting/ending, updating journal, plugin's update and full inventory can now make
      sounds; you can find a list of possible values here: jd.bukkit.org/rb/apidocs/org/bukkit/Sound.html
    * Conditions for events are now defined as 'event_conditions:' instead of simply 'conditions:'. This is
      to distinguish conditions for objectives and for events, as both of them can exist in one instruction
    * Updater is now run when disabling the plugin (it does matter if your server restarts every night)
Notes:
- All Objective events has been converted to new format. The objectives.yml file has been deleted, so if
  it contained any objectives that weren't covered by an event they may seem lost. However there is a backup file
  and you can easily extract everything from it. Please refer to the wiki to learn how objectives are now defined
  or just study converted ones (it's pretty straightforward).
- AutoUpdater is now enabled by default. Every future update will be working exactly like before, all changes
  will be automatically updated by a converter, there is always a backup and you are informed about all changes in
  this file. So it's pretty safe to say that keeping this plugin up to date won't give you any trouble. If you
  don't want to have latest fixes and features you can disable updating but this will make the developer sad.
- Because of changes in how books behave since 1.8 you may experience some strange bugs with saving books
  to items.yml. Generally you should open a book before saving it using /q item command. And don't start or end
  your books with " character, as it's part of a workaround of this bug/feature.

v1.4.3
Removed debug messages from ActionObjective. You could have told me, any of you guys...

v1.4.2
Really fixed an updater.

v1.4.1
Fixed few bugs in Action objective.
Fixed updater, hopefully.

v1.4
Changes:
    * Conversations are now divided into multiple files in "conversations" directory
    * Items are now saved to items.yml file and referenced by "take", "give", "item" and "hand" events/conditions
    * Added /q item <itemID> command which saves currently held item to the config as specified itemID
    * Added location to Action objective, which checks the location of the block (unlike location condition which checks location of the player)
    * Added /q event <eventID> command which fires specified event
    * Fixed multiple bugs with conversation starting and ending
    * Block NPCs can now be used with Citizens enabled
    * Added NPCKill objective for killing NPCs
    * Added SetBlock event for setting a block at specified location
    * Improved Material matching in configs
    * Modified Action objective for greater flexibility:
      - It is now possible to detect clicking in air
      - It is no longer possible to detect clicking on any block (as this accepts clicking on air)
      - Can be used to detect book reading (with help of updated Hand condition)
    * Added AutoUpdater; it's disabled by default
Notes:
  Conversion of configuration should have been done automatically, you don't have to worry about anything. If something went wrong you can revert changes from generated backup file, which contains all your previous configs.
  You can enable AutoUpdater by setting "autoupdate" to true in config.yml. It is completely safe because all next versions will generate backups and convert all files automatically. You will be notified on joining the server about new changelog file.
  Please refer to the wiki for changes in formatting instruction strings for various things: https://github.com/Co0sh/BetonQuest/wiki
  You probably should also change names of converted items to something else than "item12". But that works too of course.

v1.3
Changes:
    * UUID support (optional)
    * NPCs made from a clay block, head and sign, for servers without Citizens2 plugin
    * Global, long and persistent delay for events (as an objective)
    * Folder event for multiple events, with optional short delay
    * French translation (thanks to fastlockel)
If you want to convert names to UUIDs run the plugin once and then change in the config "uuid: false" to true. Do not touch the "convert: true" option unless you want your database wiped! Conversion will happen on next plugin reload (eg. /q reload). This is not revertable!
Remember to backup your config files before updating! It shouldn't destroy anything but you never know.

v1.2
Global locations now automatically run only once, no need for blocking it with tags and conditions. They use however tags that follow the syntax "global_<tag>", where <tag> is global location objective tag.
Added optional respawn location for cancelled death objective, just add "respawn:100.5;200;300.5;world;90;0" to instruction string.
Added German translation, thanks to coalaa!
Added optional movement blocking while in conversation, just add option "stop: true" or "stop: false" in every conversation.
Changed priority of conversation chat event to lowest, should work even for muted players.
Fixed data values in block objective.
Added metrics, you can disable them by setting "metrics: false" in config.yml
Added support for SQLite, plugin will use it when connecting to MySQL fails.
Fixed death objective not working every time and not removing all effects.

v1.1
Fixed many bugs including but not limited to:
    * negated conjunction condition
    * unnecessary debug messages
    * not working global locations
Replaced config examples with default quest
Leaving data values in item's definition will make plugin ignore data value in most cases
Improved journal to stop text leaks
Item names now replace _ with spaces

v1.0
Initial release
