TradePlus 1.2.1

A Secure Trade Plugin Between Players with Money and XP Levels Implementation

  1. Armadindon
    Native Minecraft Version:
    Legacy (< 1.13)
    Tested Minecraft Versions:
    • 1.12
    Source Code:
    https://github.com/Armadindon/TradePlus
    Languages Supported:
    Francais
    TradePlus - A Plugin By Armadindon

    TradePlus Is a Plugin who permit to player to trade Items, XP and Money (with Vault Implementation).
    The Trade Is secured because when a player change what he offer, the exchange status change for the other player, so nobody can steal items.
    Also, all trades are notified in the console , you can follow the trades executed by the players.

    Usage

    /trade <player> - Launch a Trade with a Player
    /tradeyes - Accept the last trade asked
    /tradeno - Deny the Last Trade asked

    Permissions

    The only permission needed for the Plugin is TradePlus.trade

    Discord
    If you have any question/idea about the plugin or want to report a bug, don't hesitate to come on my Discord Server:
    https://discord.gg/mXb3puB

    Config
    Actually, all the text are customizable with the config, the default config is in French but you can edit it in the config.yml file, you have an example of english config below
    English Config
    Code (Text):
    trade:
      #Texts in the chat
      utilisation : "&5[Trade] &eUtilisation : /trade <user>"
      samePlayer : "&5[Trade] &eYou can't launch a trade with yourself !"
      playerNotFind : "&5[Trade] &eThe asked player is not find, maybe is not connected our you typed his name wrong."
      askTrade : "&5[Trade] &eWe wait for the answer of &9"
      tradeDemand : "&5[Trade] &9%s&e want to trade with you : type &4/tradeyes &eto accept or &4/tradeno &eto refuse"
      noTrade : "&5[Trade] &eNobody want to trade with you at the moment"
      inventoryClosed1 : "&5[Trade] &eYou closed the inventory, the trade is over, we give you back your items"
      inventoryClosed2 : "&5[Trade] &eThe other player closed is inventory, the trade is over, we give you back your items"
      noSlotsAvailable : "&5[Trade] &eYou don't have enough slots available in your inventory ! Restart the trade or throw away some items."
      notEnoughXp : "&5[Trade] &eYou don't have enough xp to give !"
      notEnoughMoney : "&5[Trade] &eYou don't have enough money to give !"
      finishTrade1 : "&5[Trade] &eThe trade is over, we give you your items, you won &4%d levels&e and won &4%d galions"
      finishTrade2 : "&5[Trade] &eThe trade is over, we give you your items, you lost &4%d levels&e and lost &4%d galions"
      finishTrade3 : "&5[Trade] &eThe trade is over, we give you your items, you won &4%d levels&e and lost &4%d galions"
      finishTrade4 : "&5[Trade] &eThe trade is over, we give you your items, you lost &4%d levels&e and won &4%d galions"
      addLevel : "&5[Trade] &eYou added %d levels"
      addMoney : "&5[Trade] &eYou added %d galions"
      #Text in the UI
      clearXp : "Remove xp levels"
      add1Level : "Add 1 level"
      add10Levels : "Add 10 levels"
      quitTrade : "Quit the trade"
      add1money : "Add 1 galion"
      addnmoney : "Add %d galions"
      clearMoney : "remove all galions"
      help : "Help"
      help1 : "Put the items you want to trade to the left"
      help2 : "The items to the right are the items offers by the other player"
      help3 : "For adding levels, click on the xp bottles at the top"
      help4 : "For adding gallions, click on the emerald at the top"
      help5 : "You can follow the amount of xp and money traded at the bottom of the inventory"
      help6 : "Click on the green glass pane to accept the trade and click on the red one to reject the trade"
      tradeNotAccepted : "Trade not accepted"
      acceptTrade : "Accept trade"
      denyTrade : "Reject trade"
      tradedXp : "Traded levels :"
      tradedXpYou : "You : %d lvl"
      tradedXpOther : "Him : %d lvl"
      tradedMoney : "Money traded :"
      tradedMoneyYou :  "You : %d galion(s)"
      tradedMoneyOther : "Him : %d galion(s)"
     
     

    Dependencies

    You only need Vault (needed for the economy)

    Other
    This is my first Plugin developped for a French minecraft Server, don't hesitate to say what i did wrong and what i can improve !

    All the Source Code Is available on my github and you can improve/modify my code.

    TODO
    • Change the default config to an English one
    • Optimize the code
    • Create a more "friendly" Config
    • Create a more important Documentation