Added commands that are run when killing a player and when killing an entity.
Please add the following to your config:
Code (YAML):
# Commands executed when the weapon kills a non-player entity.
commands-on-kill-entity
:
- 'say
%thrower% hit entity %hit% with %item%'
# Commands executed when the weapon kills a player.
commands-on-kill-player
:
- 'say
%thrower% hit player %hit% with %item%'
If you want to avoid running hit commands when killing, you can add this to your on-hit config:
Code (Text):
on-hit:
...
run-commands-on-kill: false