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
[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
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=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