Skip to content

Command event replaces {player} with caster instead of target #492

Description

@KiviTheFruit

Version: SkillAPI Premium 1.90

When using the command event with the {player} variable, then it will always use the casters name and not the name of the targeted player.

Activity

  1. xxJinxedxx commented on Oct 27, 2019

    @xxJinxedxx

    This depends on how you will use the Command mechanic.

  2. KiviTheFruit commented on Oct 28, 2019

    @KiviTheFruit
    Author

    Heilender Regen.txt

    This Skill should use the command "betterhealing {player} 20" and replace the {player}-variable with all names of allies in a 7 block radius. Instead it will use the command "betterhealing caster 20" once for every nearby ally. Or is there somethin i've done wrong?

  3. xxJinxedxx commented on Oct 29, 2019

    @xxJinxedxx

    Yes, at this moment the area targeting options can not target the "targets" in that way, meaning you can not have a Command under area targeting unless you want to target the caster.
    I have a skill that need to use that same construct and i still haven't thought of a way to bypass that one.
    It is not a bug or an issue tho, this is the way it works. Hopefully with the new Kotlin update there will be an improvement on it.

    You can join the discord if you need any additional help.

  4. xxJinxedxx commented on Oct 29, 2019

    @xxJinxedxx

    Actually yes you are right, it is an issue. Tbh i haven't paid attention to the description of the mechanic at all..
    Capture

  5. KiviTheFruit commented on Oct 31, 2019

    @KiviTheFruit
    Author

    The area targeter seems to work tho. The message event works as it should, it's just the command event, that doesn't work.
    For now i use another plugin, wich will use the commands correctly, so it's not a critical issue for me now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions