Ajneb97 / ConditionalEvents

MIT License
22 stars 12 forks source link

%player% placeholder doesn't parse on 'to_target' action #47

Closed Kaidenleaf closed 7 months ago

Kaidenleaf commented 7 months ago

From version 4.45.2 and above, the placeholder of %player% in the to_target action doesn't parse.

You can try it with the example from the player_attack event:

example:
  type: player_attack
  conditions:
  - '%victim% == PLAYER'
  - '%item% == DIAMOND_SWORD'
  - '%item_name% == Super Sword'
  - '%random_1-10% >= 8'
  actions:
    default:
    - 'message: &aYour diamond sword poison effect was activated! &6%target:player_name% &ais now poisoned!'
    - 'to_target: give_potion_effect: POISON;120;1'
    - 'to_target: message: &cYou were poisoned by &e%player%&c!'

On version 4.45.1: image

On version 4.45.2 and above: Screenshot 2024-01-01 162845

Ajneb97 commented 7 months ago

Could you please check if this bug happens also with other "to" actions? Like to_world, to_all or to_range? Thanks.

Kaidenleaf commented 7 months ago

I have checked the other "to" actions and all of them worked fine.