Console cannot 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.
Any parsing errors?
Any console errors (startup / when you run the command)?
 
The console has no permissions, so it cannot execute the command.
Try this:
Code:
command /rubky [<offline player>] [<text>]:
  trigger:
    if executor is player:
      if player has permission "rubky":
        if arg-1 is not set:
          send "&c/rubky <jméno hráče> <důvod>"
        else if arg-2 is "reakce":
          send " &e&lReakce &7» &aSuper! Na tvůj účet ti bylo přičteno &45 rubínů&a!" to arg-1
          add 5 to arg-1's balance
        else:
          if arg-2 is not set:
            send "&cMusíš napsat důvod!"
    else:
      send " &e&lReakce &7» &aSuper! Na tvůj účet ti bylo přičteno &45 rubínů&a!" to arg-1
      add 5 to arg-1's balance
 
The console has no permissions, so it cannot execute the command.
Try this:
Code:
command /rubky [<offline player>] [<text>]:
  trigger:
    if executor is player:
      if player has permission "rubky":
        if arg-1 is not set:
          send "&c/rubky <jméno hráče> <důvod>"
        else if arg-2 is "reakce":
          send " &e&lReakce &7» &aSuper! Na tvůj účet ti bylo přičteno &45 rubínů&a!" to arg-1
          add 5 to arg-1's balance
        else:
          if arg-2 is not set:
            send "&cMusíš napsat důvod!"
    else:
      send " &e&lReakce &7» &aSuper! Na tvůj účet ti bylo přičteno &45 rubínů&a!" to arg-1
      add 5 to arg-1's balance
If that were the issue, the console wouldn't have given any message at all. Instead, it gave an unknown command message, which indicates that the command was never registered, so probably something internally with Skript.
Hello,
no parsing errors, no errors in console with this skript.
Can you send the startup log?
 
If that were the issue, the console wouldn't have given any message at all. Instead, it gave an unknown command message, which indicates that the command was never registered, so probably something internally with Skript.

Can you send the startup log?

sorry I didn't notice the "Console says: Unknown command. Type" / help "for help."
 
Status
Not open for further replies.