Solved need help

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

PurpleGuy007

Member
Aug 13, 2021
2
0
1
20
whenever i try to use a command with an argument called block, it says that block cannot be an argument in a command.
here's my code :

command /test <block>:
trigger:
send arg-1 to player
 
This is if you want to send to the player that executed the command
Code:
command /test [<text>]:
  if player has permission "test": #replace test with permission name
    if arg-1 is set:
      send "%arg-1%" to player

This is if you want to send to a certain person
Code:
command /test [<offlineplayer>] [<text>]:
  if player has permission "test": #replace test with permission name
    if arg-1 is set:
      send "%arg-2%" to arg-1
      stop
    else:
      send "wrong command!"

This should work perfectly
 
Status
Not open for further replies.