Solved send message to another player

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

FallingCatus

Member
Jun 29, 2017
38
0
6
33
Hey all, just a simple one hopefully...

So i am just wondering how i would send a message to another player, not the player that executed the command...

this is what i have so far but cant seem to send the message to arg 1 on line 17

no errors when loading skript.

code_language.skript:
command /sellblocks [<player>] [<text>] [<text>] :
    usage: /sellblocks <text> <text> <text>
    description: sell claim blocks to players.
    permission: sell.blocks
    permission message: &a&lCactus&f&lAdmin &8> &aNice try!
    trigger:
        set {_buyer} to arg-1
        set {_blocks} to arg-2
        set {_price} to arg-3
        set {_player} to player
        wait 1 ticks
        if arg-3 is set:
            open virtual chest inventory with 1 rows named "&e&lConfirm &e&lyour &e&lsale!" to player
            create a gui slot 0 of player with Light Blue Stained Glass Pane named "&f" to do nothing
            create a gui slot 1 of player with Light Blue Stained Glass Pane named "&f" to do nothing
            create a gui slot 2 of player with light green wool named "&a&lConfirm" with lore "&7||&7Blocks: &e%{_blocks}%||&7Price: &2$&f%{_price}%||&7Buyer: &b%{_buyer}%||&7" to close:
                send "&ethis is a test message." to arg-1
                send "&eYour sale proposal has been sent to &b%{_buyer}%&e."
            create a gui slot 3 of player with Light Blue Stained Glass Pane named "&f" to do nothing
            create a gui slot 4 of player with Light Blue Stained Glass Pane named "&f" to do nothing
            create a gui slot 5 of player with Light Blue Stained Glass Pane named "&f" to do nothing
            create a gui slot 6 of player with red wool named "&c&lCancel" with lore "&7Close the gui." to close:
                send "&eYour sale has been closed %{_player}%."
            create a gui slot 7 of player with Light Blue Stained Glass Pane named "&f" to do nothing
            create a gui slot 8 of player with Light Blue Stained Glass Pane named "&f" to do nothing
 
in tuske advanced guis you cant reference the args so just set the player arg to a local variable and use that
 
Status
Not open for further replies.