Is not a text from make player execute command

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

07L

Member
Feb 23, 2019
43
0
0
23
In my gui im making a player run a command that is made in skript. It says that the command is not a text and it won't show the item in the GUI.
Code:
command /punish [<offline player>]:
    trigger:
        if player has permission "exige.punish":
            if arg-1 is set:
                if arg-1 has played before:
                    open chest with 3 rows named "&aExige Punisher" to player
                    wait 1 tick
                    format slot 0 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 1 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 2 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 3 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 4 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 5 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 6 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 7 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 8 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 9 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 11 of player with barrier named "&aBan Reasons" with lore "" to close then run [make player execute command "bpunish %arg-1%"]
                    format slot 17 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 18 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 19 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 20 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 21 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 22 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 23 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 24 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 25 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 26 of player with light gray glass named "&7" with lore "" to run ""

                else:
                    send message "{@prefix} &cThat player has never played before!"
            else:
                send message "{@prefix} &cYou need to specify a player to punish!"
        else:
            send message "Unknown Command."

command /bpunish [<offline player>]:
    trigger:
        if player has permission "exige.punish":
            if arg-1 is set:
                if arg-1 has played before:               
                else:
                    send message "{@prefix} &cThat player has never played before!"
            else:
                send message "{@prefix} &cYou need to specify a player to punish!"
        else:
            send message "Unknown Command."

Output:
upload_2019-4-13_15-12-2.png
 
You forgot ""
["(Here)make player execute command "bpunish %arg-1%"]
 
You forgot ""
["(Here)make player execute command "bpunish %arg-1%"]
As far as I know, you do not have to use quotes for this code.
[doublepost=1555203419,1555203373][/doublepost]
In my gui im making a player run a command that is made in skript. It says that the command is not a text and it won't show the item in the GUI.
Code:
command /punish [<offline player>]:
    trigger:
        if player has permission "exige.punish":
            if arg-1 is set:
                if arg-1 has played before:
                    open chest with 3 rows named "&aExige Punisher" to player
                    wait 1 tick
                    format slot 0 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 1 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 2 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 3 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 4 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 5 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 6 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 7 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 8 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 9 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 11 of player with barrier named "&aBan Reasons" with lore "" to close then run [make player execute command "bpunish %arg-1%"]
                    format slot 17 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 18 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 19 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 20 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 21 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 22 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 23 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 24 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 25 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 26 of player with light gray glass named "&7" with lore "" to run ""

                else:
                    send message "{@prefix} &cThat player has never played before!"
            else:
                send message "{@prefix} &cYou need to specify a player to punish!"
        else:
            send message "Unknown Command."

command /bpunish [<offline player>]:
    trigger:
        if player has permission "exige.punish":
            if arg-1 is set:
                if arg-1 has played before:             
                else:
                    send message "{@prefix} &cThat player has never played before!"
            else:
                send message "{@prefix} &cYou need to specify a player to punish!"
        else:
            send message "Unknown Command."

Output:
View attachment 3307
I recommend using the GUIs of TuSKe or the Vanilla.
The inventories of SkQuery make you write twice "player" on the same line.
[doublepost=1555203575][/doublepost]
In my gui im making a player run a command that is made in skript. It says that the command is not a text and it won't show the item in the GUI.
Code:
command /punish [<offline player>]:
    trigger:
        if player has permission "exige.punish":
            if arg-1 is set:
                if arg-1 has played before:
                    open chest with 3 rows named "&aExige Punisher" to player
                    wait 1 tick
                    format slot 0 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 1 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 2 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 3 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 4 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 5 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 6 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 7 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 8 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 9 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 11 of player with barrier named "&aBan Reasons" with lore "" to close then run [make player execute command "bpunish %arg-1%"]
                    format slot 17 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 18 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 19 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 20 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 21 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 22 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 23 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 24 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 25 of player with light gray glass named "&7" with lore "" to run ""
                    format slot 26 of player with light gray glass named "&7" with lore "" to run ""

                else:
                    send message "{@prefix} &cThat player has never played before!"
            else:
                send message "{@prefix} &cYou need to specify a player to punish!"
        else:
            send message "Unknown Command."

command /bpunish [<offline player>]:
    trigger:
        if player has permission "exige.punish":
            if arg-1 is set:
                if arg-1 has played before:              
                else:
                    send message "{@prefix} &cThat player has never played before!"
            else:
                send message "{@prefix} &cYou need to specify a player to punish!"
        else:
            send message "Unknown Command."

Output:
View attachment 3307
Returning to yours, try to put the barrier id instead of the name, in this case the id of the barrier is 166.
 
As far as I know, you do not have to use quotes for this code.
[doublepost=1555203419,1555203373][/doublepost]
I recommend using the GUIs of TuSKe or the Vanilla.
The inventories of SkQuery make you write twice "player" on the same line.
[doublepost=1555203575][/doublepost]
Returning to yours, try to put the barrier id instead of the name, in this case the id of the barrier is 166.
I did that but skript then responds with a message that says to use the actual name so if I do this in multiple times it will spam the message.
 
I did that but skript then responds with a message that says to use the actual name so if I do this in multiple times it will spam the message.
What version of spigot do you use?
[doublepost=1555204260,1555204228][/doublepost]And what version of skript do you use?
 
Then try to modify things from the "aliases-english.sk"
plugins/Skript/aliases-english.sk
and go to "custom aliases", and put
Code:
barrier = 166
I think it should work.
Alright ill test this, thank you
 
Status
Not open for further replies.