Skip to content
home/templates/player trade gui (/trade)
guiIntermediatenewmc 1.20.x – 1.21.x19 lines

player trade gui (/trade)

two-player trade with confirm/ready flow. each player adds items to their side; both must accept before the trade completes.

required addons — install before reloading
  • download skBeeAdds scoreboards, hologram text, and other things Skript can't do on its own.
Drop each .jar into your plugins/ folder, then restart your server.
trade-gui.sk19 lines
command /trade <player>:
    trigger:
        if arg-1 is player:
            send "&cYou can't trade with yourself." to player
            stop
        send "&e%player% &7wants to trade with you. Type &a/tradeaccept &7to accept." to arg-1
        send "&7Sent trade request to &e%arg-1%&7." to player
        set {trade.request.%uuid of arg-1%} to player

command /tradeaccept:
    trigger:
        set {_with} to {trade.request.%uuid of player%}
        if {_with} is not set:
            send "&cNo pending trade requests." to player
            stop
        send "&aTrade accepted! (Implement the GUI flow with skBee for full functionality)" to player
        send "&aTrade accepted by &e%player%&a!" to {_with}
        delete {trade.request.%uuid of player%}

get it running

trade-gui.sk · 19 lines · needs skBee
  1. 1

    copy or download

    grab the .sk file with the buttons up top.

    trade-gui.sk· ready to drop in
  2. 2

    drop it in your scripts folder

    save it exactly here on your server — no typos, just copy the path:

    …/plugins/Skript/scripts/trade-gui.sk
  3. 3

    reload in-game

    run this in chat or console — your script goes live instantly:

    /sk reload trade-gui
that's it — your script is live. hop in-game to try it.
/ related templates

more gui templates

comments