Subcommands in skript

  • 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 community!

    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.

Kolombooo

Active Member
Dec 3, 2020
51
3
8
Hey,
I tried to make commands with special subcommands. Just like:
/command set [Argument] [Argument]
/command view [Argument]
/command add [Argument] [Argument]
/command help

My code is:
Code:
command /kredity <text> <offline player> <number>:
  aliases: /kredit /credit /credits
  permission: kredity.usage
  permission message: &7[&6&lCloud&e&lMC&7] &8Na toto nemáš oprávnění
  usage: &6Použij &e/kredity help
  trigger:
    arg-1 is "help":
      send "" to player
      send "  &6&lKredi&e&lty" to player
      send "    &6/kredity pay &e&o[Jméno] [Počet] &7- &ePoslat kredity"
    arg-1 is "pay":
      send "&6Poslal jsi &e%arg-3% &6kreditů hráčovi &e%arg-2%"

(Don't mind of the language)

Also, i need the subcommands preview
scs.png


Thanks for your help
 
Status
Not open for further replies.