Subcommands (Repost)

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

Andrei1233787

Member
Aug 14, 2021
6
0
1
This is a repost of https://forums.skunity.com/threads/multiple-sub-commands.3091

So i tried the method from the thread https://forums.skunity.com/threads/multiple-sub-commands.3091/ BUT
it runs the trigger of no subcommands when i run a subcommand

Heres my code
Code:
command /mcpeplay [<text>]:
  permission: group.moderator
  permission message: {modonly}
  trigger:
    send {mcpeplaycmdmsg} to player
    arg-1 is "reload":
    execute console command "sk reload mcpeplay.sk"
    send {reloadmsg} to player
[doublepost=1647939238,1647939135][/doublepost](Note) The variables get their value from a .yml file (I used skuitls)
[doublepost=1647939604][/doublepost]Basicly when i run /mcpeplay it runs /mcpeplay and /mcpeplay reload at the same time same when i run /mcpeplay reload only it runs both
 
Status
Not open for further replies.