Solved Command İnner Player Name Has Permission

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

Yaşarhan

Active Member
May 16, 2020
87
6
8
23
Turkey Istanbul
One more problem.

Code:
command /report [<player>] [<text>]:
    trigger:
        %arg 1% does not have permission "dont.repport":

It is understood, have a player in command, permission.
Thanks.
 
One more problem.

Code:
command /report [<player>] [<text>]:
    trigger:
        %arg 1% does not have permission "dont.repport":

It is understood, have a player in command, permission.
Thanks.
Do:
code_language.skript:
command /report [<player>] [<text>]:
    trigger:
        if arg 1 is does not have permission "dont.repport":
[doublepost=1589930492,1589930420][/doublepost]Although, I don't understand what you want to do. With that permission, do you block the access to report to the player of argument 1? Or do you want to set a permission to run the '/report' command?
 
  • Like
Reactions: Yaşarhan
Do:
code_language.skript:
command /report [<player>] [<text>]:
    trigger:
        if arg 1 is does not have permission "dont.repport":
[doublepost=1589930492,1589930420][/doublepost]Although, I don't understand what you want to do. With that permission, do you block the access to report to the player of argument 1? Or do you want to set a permission to run the '/report' command?

Thanks, sir.
I make with that permission, block the access to report to the player of argument.
[doublepost=1589931758][/doublepost]Not workingi there is no error.
I think, the player does not accept the arg variable.
[doublepost=1589932040][/doublepost]All code:

Code:
command /report [<player>] [<text>]:
    trigger:
        if player's group is "Dev" or "Mod":
            send "&c&l[SYSTEM] example problem message." to player
        else:
            if arg 1 is set:
                if arg 2 is set:
                    if {usereport.%player%} is false:
                        if arg 1 is "%player%":
                            send "&c&l[SYSTEM] example problem message." to player
                        else:
                            if arg 1 is does not have permission "dont.report":
                                set {usereport.%player%} to true
                                log "[REPORT] (%player%) ---> (%arg 1%) | REASON: %arg 2%" to "ChatReport.log"
                                send "&2&l[SYSTEM] example successful message."
                                wait 5 minutes
                                set {usereport.%player%} to false
                            else:
                                send "&c&l[SYSTEM] example problem message." to player
                    else:
                        send "&c&l[SYSTEM] example problem message." to player
                else:
                    send "&c&l[SYSTEM] example problem message." to player
            else:
                send "&c&l[SYSTEM] example problem message." to player
[doublepost=1589983153][/doublepost]Nobody can solve it ?
 
soo, am I correct in saying, that you are looking for a command permission node??
 
  • Like
Reactions: Yaşarhan
Yes, sir.
here's the code you need
Code:
command /report [<player>] [<text>]:
    permission: Your.Permission
    permission message: &cInsufficient permissions
    trigger:
        if player's group is "Dev" or "Mod":
            send "&c&l[SYSTEM] example problem message." to player
        else:
            if arg 1 is set:
                if arg 2 is set:
                    if {usereport.%player%} is false:
                        if arg 1 is "%player%":
                            send "&c&l[SYSTEM] example problem message." to player
                        else:
                            if arg 1 is does not have permission "dont.report":
                                set {usereport.%player%} to true
                                log "[REPORT] (%player%) ---> (%arg 1%) | REASON: %arg 2%" to "ChatReport.log"
                                send "&2&l[SYSTEM] example successful message."
                                wait 5 minutes
                                set {usereport.%player%} to false
                            else:
                                send "&c&l[SYSTEM] example problem message." to player
                    else:
                        send "&c&l[SYSTEM] example problem message." to player
                else:
                    send "&c&l[SYSTEM] example problem message." to player
            else:
                send "&c&l[SYSTEM] example problem message." to player
 
"if arg 1 is does not have permission "dont.report" this control writeted, not work.
There is no error.
I think, the player does not accept the arg variable.
 
you made an mistake here "if arg 1 is does not have permission "dont.report":"

corrected:
"if arg 1 does not have permission "dont.report":"
 
  • Like
Reactions: Yaşarhan
What is the expected behaviour, what is the current behaviour, and do you get any errors when loading the script?
 
(if arg 1 is does not have permission "dont.report")
When you delete this command good working.
When i add this command:
When I enter the command "/report"

A0HPp8.png
 
Replace “if arg 1 is does not have permission "dont.report":”
With
“if arg 1 does not have permission "dont.report":”
 
  • Like
Reactions: Yaşarhan
Status
Not open for further replies.