The easy and simple trade plugin.
Supported software
Supported versions
Tags
Tags
gui trade trade gui trading
bp2Ixsn.png

abd7jDT.png

MDXjtPH.png


Read Me!
This plugin requires TabuuCore. TabuuCore can be downloaded via SpigotMC or GitHub.

Code:
name: TradeX
version: 0.1.2
main: nl.tabuu.tradex.TradeX
description: Easy and simple trade plugin.
author: Tabuu
authors: [Tabuu]
website: https://www.tabuu.nl
depend: [TabuuCore]
softdepend: [TempStorageZ]
api-version: 1.13

commands:

  trade:
    usage: /trade <player>
    description: Send a trade request to the player.
    permission: tradex.trade.start

  trade accept:
    usage: /trade accept [player]
    description: Accepts a player's request to trade.
    permission: tradex.trade.accept

  trade deny:
    usage: /trade deny [player]
    description: Denies a player's request to trade.
    permission: tradex.trade.deny

  trade cancel:
    usage: /trade cancel
    description: Cancels your outgoing trade request.
    permission: tradex.trade.cancel


permissions:

  tradex.trade.start:
    description: Allows users to start a trade with another player.
    default: true

  tradex.trade.accept:
    description: Allows users to accept a trade with another player.
    default: true

  tradex.trade.deny:
    description: Allows users to deny a trade with another player.
    default: true

  tradex.trade.cancel:
    description: Allows users to cancel a trade request they send.
    default: true

Code:
# DESCRIPTION:  The amount of time before a trade request times out.
# FORMAT:       TabuuCore time format.
# NOTE:         Enter a value of 0 (e.g. '0s', '0m', '0h', etc) for no time-out.
RequestTimeOut: "1m 30s"

# DESCRIPTION:  The radius two players have to be in to trade with one another.
# FORMAT:       Double.
# NOTE:         Enter a negative value for no radius (e.g. -1).
#               Enabling this feature will disable cross world/server trading.
MaximumTradeDistance: 5.3

# DESCRIPTION:  When set to false a player cannot accept a trade that would not fit in their inventory.
# FORMAT:       Boolean.
# NOTE:         When set to true the non fitting items will be dropped at the players location or stored in the TempStorage of the player.
CanAcceptOverloadTrade: true

# DESCRIPTION:  When set to true and CanAcceptOverloadTrade is set to true; items will be stored in the player's TempStorage.
# FORMAT:       Boolean.
UseTempStorageZ: true

# DESCRIPTION:  Duration before an item expires in the TempStorage.
# FORMAT:       TabuuCore time format.
# NOTE:         Enter a value of 0 (e.g. '0s', '0m', '0h', etc) for the default TempStorageZ value.
TempStorageZTime: "1h 15s"

Code:
REQUEST_SEND: "&e&l[&5&lTradeX&e&l] &aYou've send a trade request to {PLAYER}."
REQUEST_SEND_ERROR: "&e&l[&5&lTradeX&e&l] &cSomething went wrong while sending the request. ({ERROR}&c)"

REQUEST_RECEIVED: "&e&l[&5&lTradeX&e&l] &aYou've received a trade request from {PLAYER}&a. [&2&l✔](&2Click to accept)(run_command,/trade accept {PLAYER_NAME}) [&c&l✘](&cClick to deny)(run_command,/trade deny {PLAYER_NAME})"

REQUEST_ACCEPT: "&e&l[&5&lTradeX&e&l] &aYou've accepted a trade request from {PLAYER}&a."
REQUEST_ACCEPTED: "&e&l[&5&lTradeX&e&l] &a{PLAYER}&a has accepted your request."
REQUEST_ACCEPT_ERROR: "&e&l[&5&lTradeX&e&l] &cSomething went wrong while accepting the request. ({ERROR}&c)"

REQUEST_DENY: "&e&l[&5&lTradeX&e&l] &aTrade request of player {PLAYER}&a denied."
REQUEST_DENIED: "&e&l[&5&lTradeX&e&l] &c{PLAYER}&c denied your trade request."
REQUEST_DENY_ERROR: "&e&l[&5&lTradeX&e&l] &cSomething went wrong while denying the request. ({ERROR}&c)"

REQUEST_CANCELED: "&e&l[&5&lTradeX&e&l] &aTrade request canceled."

REQUEST_TIMED_OUT: "&e&l[&5&lTradeX&e&l] &cTrade request timed-out."


TRADE_CANCELED: "&e&l[&5&lTradeX&e&l] &cTrade canceled."
TRADE_COMPLETED: "&e&l[&5&lTradeX&e&l] &aTrade completed."


UI_TITLE: "&6&lTrade with {PLAYER}"
UI_ACCEPT: "&3&lClick here to accept the trade."
UI_ACCEPT_ERROR: "&c&lCannot accept ({ERROR}&c)"
UI_WAITING: "&2&lTrade accepted. Waiting for the other player..."

UI_SHULKER_TITLE: "Shulker Box"
UI_SHULKER_EXIT: "&c&lBack to trade"

UI_ACCEPTED: "&2&lThe other player has accepted the trade."
UI_OTHER_WAITING: "&3&lWaiting for other the player..."

ERROR_MESSAGE: "&e&l[&5&lTradeX&e&l] &cWoops, something has gone wrong. ({ERROR}&c)"
ERROR_NO_REQUEST_FOUND: "&7No request found"
ERROR_PLAYER_OUT_OF_RANGE: "&7Player exceeds maximum range of {RANGE_INT} blocks."
ERROR_INVENTORY_OVERLOAD: "&7Items can not fit in inventory"

TEMPSTORAGEZ_DESCRIPTION: "Item from trade with {PLAYER}"

Latest updates

  1. 0.2.0

    Bug fix update: Possible to add items to opposite side of trade window. Overload detector not...
  2. TradeX Official release.

    You can now use TabuuCore ComponentBuilder parse in the messages. Making the trade notification...
  3. 1.4.1 BETA

    Fixed error when trying to trade with someone in another dimension while distance restrictions...

Author

Tabuu

Owner
Author
Tabuu
Downloads
3
Type
Digital product
License duration
Unlimited
Price
4.99 EUR
Views
546
First release
Last update
Rating
0.00 star(s) 0 ratings
Top
You need to upgrade!
Our dark style is reserved for our Premium members. Upgrade here.