Solved Can not use a variable in the permission message?

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

asdf

Member
Feb 4, 2017
13
0
0
42
set {no permission message} to "You do not have permission."

Code:
Command /gm [<text>] [<player>]:
    Description: Sets the game mode.
    Usage: /gm <mode> <player>
    Executable by: players and console
    permission: op.op
    permission message: {no permission message}

The message is displayed like this:

{no permission message}
:emoji_frowning:
 
it’s “{@no permission message}”
you have to define it at the beginning. of the script under “options”
 
Yes,

code_language.skript:
options:
  nopermission: &c&lNope! &7You can't.

command /test:
  permission: permission.perms
  permission message: {@nopermission}
  trigger:
    #Conditions, Effects, etc...
 
  • Like
Reactions: dudle
Yes,

code_language.skript:
options:
  nopermission: &c&lNope! &7You can't.

command /test:
  permission: permission.perms
  permission message: {@nopermission}
  trigger:
    #Conditions, Effects, etc...
I load the variable through the config.yml file.
Therefore, the options function can not be used.
 
you dont have to use the 'permission message: something' thing. you can handle it yourself like so:
code_language.skript:
command /test:
    trigger:
        if player has permission "something":
            #do stuff
        else:
            send "%{noPermissionMessage}%"
 
Status
Not open for further replies.