Class PlayerKilledPlayerEvent

java.lang.Object
org.bukkit.event.Event
com.palmergames.bukkit.towny.event.player.PlayerKilledPlayerEvent

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

    • PlayerKilledPlayerEvent

      public PlayerKilledPlayerEvent(org.bukkit.entity.Player killer, org.bukkit.entity.Player victim, Resident killerRes, Resident victimRes, org.bukkit.Location location, org.bukkit.event.entity.PlayerDeathEvent event)
      An event fired from a EventPriority.MONITOR listener. Do not use to un-kill someone or you're likely to cause issues with other plugins.
      Parameters:
      killer - Player that killed the victim.
      victim - Player that died.
      killerRes - Resident that killed the victim.
      victimRes - Resident that died.
      location - Location of the player that died.
      event - The PlayerDeathEvent.
  • Method Details

    • getHandlers

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

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

      public org.bukkit.entity.Player getKiller()
    • getVictim

      public org.bukkit.entity.Player getVictim()
    • getKillerRes

      public Resident getKillerRes()
    • getVictimRes

      public Resident getVictimRes()
    • getLocation

      public org.bukkit.Location getLocation()
    • getPlayerDeathEvent

      public org.bukkit.event.entity.PlayerDeathEvent getPlayerDeathEvent()