1.2.2

Details

  • Filename
    PrettySimpleShop.jar
  • Uploaded by
  • Uploaded
    Mar 28, 2018
  • Size
    53.75 KB
  • Downloads
    629
  • MD5
    6fa7cf26e2ff6e5fc52b6a3f8f9b284d

Supported Bukkit Versions

  • 1.12

Changelog

In this release:

  • Fixed a bug where a transaction involving a quantity greater than one would only deliver one item to the player, if the `showOffItems` was enabled in the config.

 

From 1.2:

 

  • /shop is now configurable, along with a default message to instruct how a player may setup a shop (with default settings).
  • Instead of depositing items directly in the player's inventory, an inventory (internally called the "collection window) appears where the player can pick out the items they bought. This also more clearly shows a player what and how much they bought.
    • This also removes the issue of items stacking when they're not supposed to/exceeding their normal stack size.
  • The plugin will "prompt" the player to buy from a shop if they select the same shop twice, or click the shop in their chat. The player then can simply type the quantity they wish to buy, instead of being explicitly told to use the /buy command.
    • (I tried to use more specific input methods, such as an anvil, but this was too klutzy.)
    • This is configurable: useBuyPrompt
  • The player is prompted with a book UI showing them a preview of the transaction invoice, allowing them to view the total cost, item details (when hovering over the item name), and to confirm or deny the transaction.
    • This is configurable: confirmTransactions
  • Messages added for all of the new features added.

API:

  • ShopSelectEvent has a new variable for "hasIntent" to designate if this shop was already selected by the player before (i.e. likely is interested in buying)

Implementation:

  • Showcased items will not be able to be picked up by hoppers.