SafeTrade 1.1.0

A simple inventory based trading plugin

  1. BtoBastian
    Tested Minecraft Versions:
    • 1.8
    • 1.9
    • 1.10
    • 1.11
    • 1.12
    • 1.13
    SafeTrade - Inventory based trading
    [​IMG]
    SafeTrade is a plugin that makes trading a lot more safe. You trade using an inventory gui. The trade consists of two steps:
    • In the first step you put your items (and money) in the inventory. Your partner does the same. When you put all items you want to trade in the inventory, you have to change your status to ready. When both traders are ready it's time for step 2.
    • In the second step you can decide whether you want to accept the offer of your partner or not. In this step the partner (and you) can no longer change his offer. When both traders accept the trade, they get the items (and money) the other player offered.
    Example Trade

    Supported Versions
    SafetTade version 1.1.0 supports Minecraft version 1.13.x and newer. If you are running a sever with version with Minecraft version 1.8.x - 1.12.x, please use SafeTrade version 1.0.16. Minecraft versions older than 1.8.x are not supported.

    Commands
    • /trade <player>
      Description:
      Request <player> to trade with you. After that <player> has to accept your trade.
      Permission: safetrade.request
    • /trade accept
      Description:
      Accepts the last trade request. A trade request expires after 30 seconds!
      Permission: safetrade.accept
    • /trade deny
      Description: Denies the last trade request.
      Permission: safetrade.deny
    • /trade reload
      Description: Reloads the configuration files.
      Permission: safetrade.reload
    • /trade help
      Description: Shows a list with all command the player is allowed to use.

    Configuration
    The plugins works "Out of the box" (besides permissions). Of course there are some things, you can configurate. The config.yml contains lot's of comments explaining each option in detail.
    Code (YAML):

    ######################################################################
    ######################################################################
    ###           _____        __  _______            _                ###
    ###          / ____|      / _||__   __|          | |               ###
    ###         | (___   __ _| |_ ___| |_ __ __ _  __| | ___           ###
    ###          \___ \ / _` |  _/ _ \ | '__/ _` |/ _` |/ _ \          ###
    ###          ____) | (_| | ||  __/ | | | (_| | (_| |  __/          ###
    ###         |_____/ \__,_|_| \___|_|_|  \__,_|\__,_|\___|          ###
    ###                                           by BtoBastian        ###
    ######################################################################
    ######################################################################
    #                            Main settings                           #
    ######################################################################
    # Already translated languages: en, de                               #
    # Format: You must use IETF BCP 47 language tags.                    #
    #         To translate the plugin yourself, you must create a        #
    #         Messages_language.properties file  .                       #
    ######################################################################
    language
    : "auto"
    ######################################################################
    # Some languages may need an other charset. The default encoding     #
    # is UTF-8 which supports most common languages. If some characters  #
    # of your own translation get replaced with strange characters or    #
    # question marks you should try to change the encoding (e.g. UTF-16) #
    # Of course you must encode the Messages-file, too.                  #
    ######################################################################
    encoding
    : "UTF-8"
    ######################################################################
    # Should it be allowed to trade with money?                          #
    ######################################################################
    tradeWithMoney
    : true
    ######################################################################
    # Is it forbidden to get run into debt?                              #
    ######################################################################
    noDebts
    : true
    ######################################################################
    # How many blocks can players be away to trade?                      #
    # Set this to -1 if you don't want a maximum trading distance.       #
    ######################################################################
    maxTradingDistance
    : 15
    ######################################################################
    # Should it be allowed to trade with players in other worlds?        #
    # If this is set to true, maxTradingDistance will have no effect!    #
    ######################################################################
    tradeThroughWorlds
    : false
    ######################################################################
    # Should the players be able to start a trade by right clicking the  #
    # other player while sneaking?                                       #
    ######################################################################
    fastTrade
    : false
    ######################################################################
    # The values used for the "Adds/Removes xyz money" buttons.          #
    ######################################################################
    smallMoneyValue
    : 1
    mediumMoneyValue
    : 10
    largeMoneyValue
    : 100
     
    Code (YAML):

    ######################################################################
    ######################################################################
    ###           _____        __  _______            _                ###
    ###          / ____|      / _||__   __|          | |               ###
    ###         | (___   __ _| |_ ___| |_ __ __ _  __| | ___           ###
    ###          \___ \ / _` |  _/ _ \ | '__/ _` |/ _` |/ _ \          ###
    ###          ____) | (_| | ||  __/ | | | (_| | (_| |  __/          ###
    ###         |_____/ \__,_|_| \___|_|_|  \__,_|\__,_|\___|          ###
    ###                                           by BtoBastian        ###
    ######################################################################
    ######################################################################
    #              Design settings (materials in inventory)              #
    ######################################################################
    # This file allows you to change the design of the trading inventory #
    # Format: Items just use the name of the item.                       #
    #         A list with all available items can be found here:         #
    # https://hub.spigotmc.org/javadocs/bukkit/org/bukkit/Material.html  #
    #         You can omit underscores and write in lower case           #
    ######################################################################
    ######################################################################
    # The item which is used to seperate the right and left part of the  #
    # trading inventory.                                                 #
    # Default value: "iron bars"                                         #
    ######################################################################
    seperator
    : "iron bars"
    ######################################################################
    # The buttons which are used to add/remove money.                    #
    # Default values:                                                    #
    # small: "gold nugget"                                               #
    # medium: "gold ingot"                                               #
    # large: "gold block"                                                #
    # clear money: "barrier"                                             #
    ######################################################################
    smallMoney
    : "gold nugget"
    mediumMoney
    : "gold ingot"
    largeMoney
    : "gold block"
    clearMoney
    : "barrier"
    ######################################################################
    # The icon which is used to show the amount of offered money.        #
    # Default values:                                                    #
    # small: "gold nugget"                                               #
    # medium: "gold ingot"                                               #
    # large: "gold block"                                                #
    # very large: "diamond"                                              #
    # very very large: "diamond block"                                   #
    # no money: "barrier"                                                #
    ######################################################################
    smallMoneyOffered
    : "gold nugget"
    mediumMoneyOffered
    : "gold ingot"
    largeMoneyOffered
    : "gold block"
    veryLargeMoneyOffered
    : "diamond"
    veryVeryLargeMoneyOffered
    : "diamond block"
    noMoneyOffered
    : "barrier"
    ######################################################################
    # The item which are used to accept or abort a trade                 #
    # Default values:                                                    #
    # mark as ready: "lime wool"                                         #
    # accept trade: "lime wool"                                          #
    # abort trade: "red wool"                                            #
    ######################################################################
    markAsReady
    : "lime wool"
    acceptTrade
    : "lime wool"
    abortTrade
    : "red wool"
    ######################################################################
    # The item which shows if the partner is (not) ready/has accepted    #
    # Default values:                                                    #
    # partner ready: "lime dye"                                          #
    # partner not ready: "grey dye"                                      #
    # partner accepted: "lime dye"                                       #
    # partner not accepted: "grey dye"                                   #
    ######################################################################
    partnerReady
    : "lime dye"
    partnerNotReady
    : "grey dye"
    partnerAccepted
    : "lime dye"
    partnerNotAccepted
    : "grey dye"
    ######################################################################
    # The item which shows when you ware ready (or have accepted) but    #
    # your partner is not ready (or has not accepted) yet.               #
    # Default values:                                                    #
    # ready and wait for partner: "lime glass pane"                      #
    # accepted and wait for partner: "lime glass pane"                   #
    ######################################################################
    readyAndWaitForPartner
    : "lime glass pane"
    acceptedAndWaitForPartner
    : "lime glass pane"
     

    Stats
    You can view all stats at: https://bstats.org/plugin/bukkit/SafeTrade
    [​IMG]

    Useful links
    GitHub:
    https://github.com/BtoBastian/SafeTrade
    German description: >Link<
    kaketoe, untre3h, K47 and 14 others like this.

Recent Updates

  1. SafeTrade 1.1.0
  2. SafeTrade 1.0.16
  3. SafeTrade 1.0.15 - Hotfix update

Recent Reviews

  1. Foxeno5
    Foxeno5
    5/5,
    Version: 1.1.0
    The plugin look very good but I have a problem, non-op people can't use the commands, and I can't give the permissions
  2. borjaam
    borjaam
    5/5,
    Version: 1.1.0
    Great plugin! If you could update it to 1.15 and 1.16 versions it would be perfect :)
  3. ReActions
    ReActions
    4/5,
    Version: 1.1.0
    Everything works perfectly, I am currently at 1.15 and without problems, I would just like to add the option of logs, to have a record of the exchanges.
  4. SladeHazard
    SladeHazard
    2/5,
    Version: 1.1.0
    Good plugin but no option for players to trade in adventure mode or set custom money using an anvil system will change review if improve!
  5. Mitsu2k
    Mitsu2k
    5/5,
    Version: 1.1.0
    Very nice
    Its time to add the "Shift + click " option tho...
    80 WORDSSSSSSSSSSSSSSSSSSSSSSS
  6. Itzack
    Itzack
    5/5,
    Version: 1.1.0
    ==============================
    Excelent, 1.14.4???
    ==============================
  7. TheNahuPvP
    TheNahuPvP
    2/5,
    Version: 1.1.0
    Tengo un problema, en el archivo de edición "Style.yml" no me deja poner color a los items que agrego, por ejemplo:
    "lime stained glass pane"
    Podrían ayudarme por favor.
    1. BtoBastian
      Author's Response
      Hello, please write English, otherwise I cannot understand and help you.
      Please make sure that you are using the correct SafeTrade version for your server version.
  8. Superdarco
    Superdarco
    5/5,
    Version: 1.1.0
    Nice plugin, a question, can update this for 1.14 please? thanks.

    ----------------------
  9. untre3h
    untre3h
    5/5,
    Version: 1.1.0
    ==================================
    Nice! 5 stars
    ==================================
  10. AminePvPDZ
    AminePvPDZ
    5/5,
    Version: 1.1.0
    =============================
    Best Plugin without Errors
    =============================