Please help with ~ondeath commands..

Discussion in 'Support' started by aaran, Mar 8, 2019.

  1. aaran

    aaran New Member

    Joined:
    Jun 16, 2017
    Messages:
    6
    Likes Received:
    0
    Hello I have a skills set and added it to my mob but its not activating on his death can some one please help ill post the skill and the mobs skill setup. I have a command set with the plugin my command as well this command is...

    BossDeathCommand:
    command: /bossdeathcommand
    type: RUN_CONSOLE
    runcmd:
    - '/lp user $player permission set mycommand.cmd.portfromboss'

    I know this command works as I have tested it but trying to set it up with the mythic mobs as well I am just not sure I have the configs setup right in mythic mobs.

    SetCommand:
    Skills:
    - command{c="bossdeathcommand"} @PlayersInRadius{r=5}


    Skills:
    - skill{s=SetCommand} ~onDeath
     
    #1
    Last edited: Mar 8, 2019
  2. Nexto

    Nexto Member

    Joined:
    Dec 3, 2017
    Messages:
    44
    Likes Received:
    4
    Try this
    SetCommand:
    Skills:
    - command{c="sudo <target.name> bossdeathcommand"} @PlayersInRadius{r=5}


    Skills:
    - skill{s=SetCommand} @self ~onDeath
     
    #2
  3. aaran

    aaran New Member

    Joined:
    Jun 16, 2017
    Messages:
    6
    Likes Received:
    0
    thanks it almost worked my problem is now I'm trying to make a player run a command that the control panel need s run I took some of what you said and changed it a bit and it works but not properly it works if I am in op mode but not when I am deoped this is what I got I changed it from using the my command and went for the overall command which is this.

    SetCommand:
    Skills:
    - command{c="sudo <target.name> lp user <target.name> permission set mycommand.cmd.portfromBoss"} @PlayersInRadius{r=5}
     
    #3
  4. Nexto

    Nexto Member

    Joined:
    Dec 3, 2017
    Messages:
    44
    Likes Received:
    4
    Sudo means that the target player will execute the skill, as the command needs a permission and they dont have it, it dont works. With your new config you dont need sudo <target.name>, so remove it and you are ready to go
     
    #4

Share This Page