Class PlayerKillEvent


public class PlayerKillEvent extends org.bukkit.event.Event
  • Constructor Details

    • PlayerKillEvent

      @Deprecated public PlayerKillEvent(@NotNull @NotNull IArena arena, org.bukkit.entity.Player victim, org.bukkit.entity.Player killer, Function<org.bukkit.entity.Player,String> message, PlayerKillEvent.PlayerKillCause cause)
      Called when a Player got killed during the game.
      killer - can be NULL.
    • PlayerKillEvent

      public PlayerKillEvent(@NotNull @NotNull IArena arena, @NotNull @NotNull org.bukkit.entity.Player victim, @Nullable @Nullable ITeam victimTeam, @Nullable @Nullable org.bukkit.entity.Player killer, @Nullable @Nullable ITeam killerTeam, @Nullable @Nullable Function<org.bukkit.entity.Player,String> message, @NotNull @NotNull PlayerKillEvent.PlayerKillCause cause)
  • Method Details

    • getKiller

      public org.bukkit.entity.Player getKiller()
      Killer can be NULL (void etc.)
    • getMessage

      @Nullable public @Nullable Function<org.bukkit.entity.Player,String> getMessage()
      Get kill chat message.
    • setMessage

      public void setMessage(@Nullable @Nullable Function<org.bukkit.entity.Player,String> message)
      Set chat message.
    • getCause

      Get kill cause
    • getArena

      public IArena getArena()
    • getVictim

      public org.bukkit.entity.Player getVictim()
      Get the Player who died.
    • playSound

      public boolean playSound()
      Checks if the killer gets the kill sound
    • setPlaySound

      public void setPlaySound(boolean playSound)
      Set if the killer should get the kill sound
    • getKillerTeam

      public ITeam getKillerTeam()
    • getVictimTeam

      public ITeam getVictimTeam()
    • setKillerTeam

      public void setKillerTeam(ITeam killerTeam)
    • setVictimTeam

      public void setVictimTeam(ITeam victimTeam)
    • getHandlers

      public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event
    • getHandlerList

      public static org.bukkit.event.HandlerList getHandlerList()