[ChestShop Addon] SearchChestShop 1.1

Search a shop with a command among player's shops or adminshops - Support auto-completion

  1. magrigrigri
    Native Minecraft Version:
    1.16
    Tested Minecraft Versions:
    • 1.16
    Source Code:
    https://github.com/Over2Craft-mc/searchchestshop
    Languages Supported:
    French
    Feel free to contact me on discord Quentin#3601 if you need any help :)

    This plugin aim to provide a command to search among ChestShop shops and teleport to it.

    upload_2021-2-19_12-23-50.png

    upload_2021-2-19_12-24-2.png

    Commands

    Code (Text):

    /shopsearch <item_id> - Search an ITEM
     

    Code (Text):

    /shopsearch <filter> <item_id> - Search an ITEM based on a filter. Supported filters are buyable or sellable. The name of the filter can be configure in the configuration file (sellable and buyable config keys).
    Example :
    /shopsearch #buyable <item_id>
     
    Code (Text):

    /shopsearch $reload - Reload config.yml
     
    Code (Text):

    /shopsearch $reload-storage - Reload storage.yml
     
    Permissions
    Code (YAML):
     over2craft.shopsearch.use:
        description
    : Allow /shopsearch
        default
    : true
      over2craft.shopsearch.teleport
    :
        description
    : Allow usage of command /shopteleport (when the player click on the [teleport] button in the tchat)
        default
    : true
      over2craft.shopsearch.reload
    :
        description
    : Allow shopsearch configuration reload /shopsearch $reload and $reload-storage
        default
    : op
    Configuration

    Code (YAML):
    message:
      prefix
    : '&6&lOver&b2&2&lCraft &f- '

      noshop
    : 'Can't teleport. No shop referenced'

      noshopWithThisId
    : 'No shop found for this item...'

      teleport
    : 'You have been teleported'

      shopSearchUsage
    : 'No result found... to search a shop among server's shop, use the command &8/shopsearch <item> &fwith auto-completion'


    # A regex that match all shop that you would reference
    # For example if you want to reference only Adminshop shops you could use
    # shopThatshouldBeReferenced: '(?i)Adminshop' # (?i) make the regex not case sensitive
    shopThatshouldBeReferenced
    : '(.*)'

    # You might have created many shops before using this plugin. Shops will only be referenced when they are created.
    # Setting this to true will also reference them when a transaction is done (for example when a player buy or sell).
    # It could help you to reference more shops but may also have a performance cost
    referenceOnTransactionEvent
    : false

    # If you have many shops referenced, you might not want
    # to send to much auto complete suggestions
    limitAutoCompleteSuggestion
    : 100

    # Name of the sellable filter
    sellable
    : "#sellable"

    # Name of the buyable filter
    buyable
    : "#buyable"

    # Use this to generate a tellraw command https://minecraft.tools/en/tellraw.php
    # /!\ Placeholders are case sensitive
    # Available placeholders are :
    #    %shop_name% = First line of the chestshop signs (usually name of the player)
    #    %item_id% item id which the shop is selling
    #    %coordinates% coordinates of the shop in this format x:0;y:0;z:0
    #    %B_price% Price for buying. Look at B_price. Empty if no buying price define. Correspond to the line 3 of a shop sign
    #    %S_price% Price for selling. Look at S_price. Empty if no selling price define. Correspond to the line 3 of a shop sign
    #    %quantity% quantity that is sell for the define price. Correspond to the line 2 of a shop sign
    #
    # You can Create a click event and run command "/shopteleport %item_id% %coordinates%"
    # to teleport the player to the sign
    teleportationMessage
    : '["",{"text":"-------------------------------------------\n[Se téléporter]","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"/shopteleport %item_id% %coordinates%"}},{"text":" - Shop de %shop_name%\n","clickEvent":{"action":"run_command","value":"/shopteleport %item_id% %coordinates%"}},{"text":"\u4dc0","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"/shopteleport %item_id% %coordinates%"}},{"text":" ","color":"#DCDDDE","clickEvent":{"action":"run_command","value":"/shopteleport %item_id% %coordinates%"}},{"text":"%B_price% %S_price% Prix pour %quantity% items\n","clickEvent":{"action":"run_command","value":"/shopteleport %item_id% %coordinates%"}},{"text":"-------------------------------------------","bold":true,"color":"green","clickEvent":{"action":"run_command","value":"/shopteleport %item_id% %coordinates%"}}]'

    ## This format prices placeholders
    B_price
    : 'You can buy here for $ %s.'
    S_price
    : 'You can sell here for $ %s.'


    # Does the plugin will try to change coordinates and orientation to teleport the player in front of the sign.
    # Should be true most of the time
    tryToChangeCoordinates
    : true

Recent Reviews

  1. HasanKeskin
    HasanKeskin
    5/5,
    Version: 1.1
    I need 1.8 support NOW

    its awsome plugin keep developing
  2. Saervok
    Saervok
    3/5,
    Version: 1.1
    Can effectively change this so that I am not teleporting to the shop but instead printing out co'ordinates using the %coordinates% placeholder.

    Would be amazing if we could have something that instead of teleporting us to the shop, informed us the distance in blocks to the shop, and perhaps turned the player to face which direction they should walk.

    Other than that, really nice free plugin. Especially enjoy that I can right click the shops to import them for the AutoComplete.
    1. magrigrigri
      Author's Response
  3. Leahcim_krob
    Leahcim_krob
    5/5,
    Version: 1.0
    Verry good an simple Addon for Chestshop. Your user like this. They can find all shops for an Item verry easy.