EpicTrade | Player Trading - GUI icon

EpicTrade | Player Trading - GUI -----

Player Trading one to one!



This plugin allows you to make one to one trades with other players.
To request a trade simply crouch+right click a player.
Once you have done that the targeted player will be sent a prompt in chat which when they click they can accept the trade and a gui will be opened.

[​IMG]
My Other Plugins:
EpicShop
EpicCurrency
ChatBlocker

A big thanks to 93n320u5_90d for helping me test the plugin!

Permissions:
Code (YAML):

epictrade.admin - Allows access to the admin panel

epictrade.toggle - Allows the use of command
: /trade toggle

epictrade.accept - Allows the target player to accept a trade.

epictrade.request - Allows a player to request a trade by shift + right clicking another player.

epictrade.request.command - Allows the use of /trade <playername> to invite to a trade.
 
Commands:
Code (YAML):

/epictrade - Requires permission "epictrade.admin" to use, opens the admin panel.

/trade toggle - Requires permission "epictrade.toggle" to use, this will block incoming trades to a use but will also stop sending trades.

/trade - Requires permission "epictrade.accept" to use, this is for bedrock players that can't click the text in a chat to accept a trade.

/trade <playername> - Allows invites to trades from anywhere in the world.
 
Trade Window
[​IMG]

Trade Prompt
[​IMG]

Trade No Longer Available (Trade has already completed)
[​IMG]

API:
Code (Java):

EpicTradesAPI. getTrades ( ) ; //Returns a List of all current trades

EpicTradesAPI. getPendingTrades ( ) ; //Returns all trades that haven't yet been accepted.

EpicTradesAPI. isTrading (Player ) ; //Returns true/false if the player is trading

EpicTradesAPI. closeTrade (Player ) ; //Closes the trade of the player and the player he's trading with.

EpicTradesAPI. closeTrades ( ) ; //Closes all trades
 
Event:
Code (Java):

TradeRequestEvent (Cancellable ) - Provides you with Player 1 and Player 2 of the trade request.
 
If you have any issues, questions, or suggestions, please DM me here on Spigot or on discord https://discord.gg/G9EHGf2WV9
Resource Information
Author:
----------
Total Downloads: 5,117
First Release: Apr 14, 2021
Last Update: Sep 21, 2021
Category: ---------------
All-Time Rating:
5 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings