Class ManhuntEventHandler

java.lang.Object
uk.radialbog9.spigot.manhunt.listeners.ManhuntEventHandler
All Implemented Interfaces:
org.bukkit.event.Listener

public class ManhuntEventHandler extends Object implements org.bukkit.event.Listener
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    compassRightClickEvent(org.bukkit.event.player.PlayerInteractEvent e)
    Detects compass right click for hunters.
    void
    enderDragonDeathEvent(org.bukkit.event.entity.EntityDeathEvent e)
    Detects ender dragon death.
    void
    hunterCrystalDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e)
    Stops the hunters from being able to damage the End Crystals
    void
    hunterDragonDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e)
    Stops the hunters from being able to damage the Ender Dragon
    void
    hunterRespawnEvent(org.bukkit.event.player.PlayerRespawnEvent e)
    Detects when hunters respawn and gives them a compass
    void
    inGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e)
    Detects when player joins server while the server is running a manhunt game.
    void
    inGamePlayerLeaveEvent(org.bukkit.event.player.PlayerQuitEvent e)
    Detects when hunter/runner leaves the server and sets them as a spectator
    void
    noGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e)
    Detects player joining when game is not started
    void
    runnerDeathEvent(org.bukkit.event.entity.PlayerDeathEvent e)
    Detects death for runners

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ManhuntEventHandler

      public ManhuntEventHandler()
  • Method Details

    • runnerDeathEvent

      public void runnerDeathEvent(org.bukkit.event.entity.PlayerDeathEvent e)
      Detects death for runners
      Parameters:
      e - the event
    • hunterRespawnEvent

      public void hunterRespawnEvent(org.bukkit.event.player.PlayerRespawnEvent e)
      Detects when hunters respawn and gives them a compass
      Parameters:
      e - the event
    • compassRightClickEvent

      public void compassRightClickEvent(org.bukkit.event.player.PlayerInteractEvent e)
      Detects compass right click for hunters.
      Parameters:
      e - the event
    • inGamePlayerJoinEvent

      public void inGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e)
      Detects when player joins server while the server is running a manhunt game.
      Parameters:
      e - the event
    • inGamePlayerLeaveEvent

      public void inGamePlayerLeaveEvent(org.bukkit.event.player.PlayerQuitEvent e)
      Detects when hunter/runner leaves the server and sets them as a spectator
      Parameters:
      e - the event
    • enderDragonDeathEvent

      public void enderDragonDeathEvent(org.bukkit.event.entity.EntityDeathEvent e)
      Detects ender dragon death.
      Parameters:
      e - the event
    • noGamePlayerJoinEvent

      public void noGamePlayerJoinEvent(org.bukkit.event.player.PlayerJoinEvent e)
      Detects player joining when game is not started
      Parameters:
      e - the event
    • hunterDragonDamageEvent

      public void hunterDragonDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e)
      Stops the hunters from being able to damage the Ender Dragon
      Parameters:
      e - the event
    • hunterCrystalDamageEvent

      public void hunterCrystalDamageEvent(org.bukkit.event.entity.EntityDamageByEntityEvent e)
      Stops the hunters from being able to damage the End Crystals
      Parameters:
      e - the event