1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Script Trading 1.0.0

A basic and highly configurable trading system.

  1. LimeGlass
    Supported Minecraft Versions:
    • 1.12
    Trading
    This script is designed to make trading simple and easy for the user without the worry of someone stealing your items on trading. This system secures that your players have a safe trade and no scamming.

    Commands
    * /Trade (PlayerName) - Requests a trade with the designated player
    * /Trade Accept - Accepts the current trade request
    * /Trade Deny- Declines the current trade request

    Permissions
    Only one permission to actually allow trading
    • trade.use

    Installation
    To install the plugin onto your server:
    1. Skellett and Skript 2.2-dev34 installed. (In 2.2-dev35 you won't need Skellett)
    2. Place the download Trading.sk in the scripts folder "plugins/Skript/scripts"
    3. Type /sk reload Trading
    4. Enjoy!
    Video (Sound delay was my video recorder)


    Options
    Code (Skript):
    1. #---------------------------------------------------------------------------------------------
    2. options:
    3.     prefix: &7[&6Trading&7] &f
    4.     command: /trade
    5.     aliases: /trading, /trade
    6.     usage: &cThe correct command is &l/trade (player) &cmake sure that the user is online.
    7.     header: "     &5&nYours&r              &4&nTheirs"
    8.     #The item dividing each side
    9.     divider: gray stained glass pane named "&6"
    10.     #The item to click and move back a step
    11.     cancel: red stained glass pane named "&cClick me to cancel trade"
    12.     #state 0 - when the user opens the gui
    13.     state0: orange stained glass pane named "&5Click me to accept trade"
    14.     #state 1 - when the user is ready to accept
    15.     state1: yellow stained glass pane named "&6Click me again to confirm trade"
    16.     #state 2 - when the user is ready to accept
    17.     state2: green stained glass pane named "&aWaiting on tradee..."
    18.     #otherstate is the what the other tradee will see.
    19.     #otherstate 0 - when the user opens the gui
    20.     otherstate0: orange stained glass pane named "&6Other tradee's state"
    21.     #otherstate 1 - when the user is ready to accept
    22.     otherstate1: yellow stained glass pane named "&6Waiting for you to accept"
    23.     #time before the request expires.
    24.     timeout: 2 minutes
    25.     #should users in creative be allowed to trade?
    26.     trade-creative: true
    27.     #should users within a range only be allowed to trade?
    28.     trade-range: true
    29.     range: 10
    30.  
    31.     #Messages
    32.     sent: &aTrade request sent to %argument parsed as player%
    33.     trade: &6&l%player% &6has requested to make a trade with you. Type &a&l/trade accept &6to accept or &c&l/trade deny &6to deny.
    34.     already: &cYou have already requested a trade. To cancel trade type &l/trade cancel
    35.     cancelled: &cYou cancelled your trade request.
    36.     deny: &cYou denied your trade request.
    37.     denied: &cYour trade reqest was denied.
    38.     timed-out: &cThe request to %argument parsed as player% has expired.
    39.     no-trade: &cYou have no trade requests pending.
    40.     close-inventory-trade: &cThe user you were trading with has cancelled the trade.
    41.     max-slots: You may only insert up to 20 slots worth of items.
    42.     complete: The trade has been successful.
    43.     reload: The trading system has been reloaded by the console, all trades refunded.
    44.     trade-self: You can't trade with yourself, that's pointless.
    45.     no-permission: You don't have the correct permissions to trade with users.
    46.     creative: You can't trade when in creative mode.
    47.     outofrange: You can't trade with this user because they're too far away, you need to be atleast 10 blocks away.
    48. #---------------------------------------------------------------------------------------------
    Ayham Alali likes this.