Trigger command

Discussion in 'Spigot Plugin Help' started by Stiexeno, Sep 16, 2020.

  1. Its possible to make plugin that triggers other plugin command when player kills another player

    Additional: command triggers only when for example [Default] Player kills [VIP] Player
    Executing command: /kill [Default] Player
     
  2. I don't understand what you mean
     
  3. For example [Moderator(group rank)] Player killed [VIP(group rank)] Player and automatically triggered console command: /economy give [Moderator(group rank)] Player 100

    Also if [Moderator] Player killed [Admin] Player, nothing happens

    Example command: /killtrigger <killer group>Moderator <killed group>VIP <command> economy give %player% 100
     
    #3 Stiexeno, Sep 16, 2020
    Last edited: Sep 16, 2020
  4. PlayerCommandPreprocessEvent

    if the player use the Command /kill
     
  5. But I need when player kills with sword for example... not with command